RE: Strange APR/native behaviour

2013-03-12 Thread Mark Thomas
"Caldarale, Charles R" wrote: >> From: Mark Thomas [mailto:ma...@apache.org] >> Subject: Strange APR/native behaviour > >> The problem I am seeing is with a non-blocking write in the >> AprServletOutputStream [1]. > >> If a write returns EAGAIN (line 97) the socket is added to the poller >> for

Re: Strange APR/native behaviour

2013-03-12 Thread Remy Maucherat
On Tue, 2013-03-12 at 00:25 +, Mark Thomas wrote: > I have been tracking down a problem with the Autobahn test suite and > APR/native connector when using SSL (all is fine with non-SSL). > > In the test Autobahn sends a 16MB frame to the server which the server > echos back to the client. > >

Re: Strange APR/native behaviour

2013-03-12 Thread Mark Thomas
On 12/03/2013 09:47, Remy Maucherat wrote: > On Tue, 2013-03-12 at 00:25 +, Mark Thomas wrote: >> I assume I am doing something wrong. Pointers appreciated. > > So I don't know precisely, but for non blocking, you're not doing the > same thing I'm doing (which went through stress tests succ

Re: Strange APR/native behaviour

2013-03-12 Thread Remy Maucherat
On Tue, 2013-03-12 at 13:25 +, Mark Thomas wrote: > Thanks for the pointers. I tried a few of them (the less invasive ones) > with no luck. I'm putting together a test case that demonstrates the > problem. That should make it very simple to determine if the root cause > lies in APR or my code.

svn commit: r1455688 - in /tomcat/trunk/test/org/apache/tomcat/jni: ./ TestSocket.java

2013-03-12 Thread markt
Author: markt Date: Tue Mar 12 20:01:26 2013 New Revision: 1455688 URL: http://svn.apache.org/r1455688 Log: Test case that attempts to replicate the problem I am seeing with WebSocket and APR. The test case currently passes. The major differences are that the test case doesn't use a poller and d

svn commit: r1455689 - /tomcat/trunk/test/org/apache/tomcat/jni/TestSocket.java

2013-03-12 Thread markt
Author: markt Date: Tue Mar 12 20:02:54 2013 New Revision: 1455689 URL: http://svn.apache.org/r1455689 Log: Comment in/out the right bits. Modified: tomcat/trunk/test/org/apache/tomcat/jni/TestSocket.java Modified: tomcat/trunk/test/org/apache/tomcat/jni/TestSocket.java URL: http://svn.apac

[Tomcat Wiki] Update of "Tomcat/UTF-8" by Sergio Soto

2013-03-12 Thread Apache Wiki
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "Tomcat/UTF-8" page has been changed by Sergio Soto: http://wiki.apache.org/tomcat/Tomcat/UTF-8?action=diff&rev1=16&rev2=18 - This page is obsolete. See [[FAQ/CharacterEncoding|FAQ/

svn commit: r1455700 - /tomcat/trunk/test/org/apache/tomcat/jni/TestSocket.java

2013-03-12 Thread markt
Author: markt Date: Tue Mar 12 20:35:26 2013 New Revision: 1455700 URL: http://svn.apache.org/r1455700 Log: Add poller to test (still passes) Modified: tomcat/trunk/test/org/apache/tomcat/jni/TestSocket.java Modified: tomcat/trunk/test/org/apache/tomcat/jni/TestSocket.java URL: http://svn.a

Re: [VOTE] Release Apache Tomcat 7.0.38

2013-03-12 Thread Mark Thomas
On 07/03/2013 22:47, Mark Thomas wrote: > The proposed Apache Tomcat 7.0.38 release is now available for voting. > > It can be obtained from: > https://dist.apache.org/repos/dist/dev/tomcat/tomcat-7/v7.0.38/ > The Maven staging repo is: > https://repository.apache.org/content/repositories/orgapach

svn commit: r1455714 - /tomcat/trunk/test/org/apache/tomcat/jni/TestSocket.java

2013-03-12 Thread markt
Author: markt Date: Tue Mar 12 21:08:28 2013 New Revision: 1455714 URL: http://svn.apache.org/r1455714 Log: Add SSL. Test still passes. Modified: tomcat/trunk/test/org/apache/tomcat/jni/TestSocket.java Modified: tomcat/trunk/test/org/apache/tomcat/jni/TestSocket.java URL: http://svn.apache.

svn commit: r1455737 - /tomcat/trunk/test/org/apache/tomcat/jni/TestSocket.java

2013-03-12 Thread markt
Author: markt Date: Tue Mar 12 22:35:06 2013 New Revision: 1455737 URL: http://svn.apache.org/r1455737 Log: Make SSL optional Try to write data in one large chunk. Unexpected values for written are now observable. Modified: tomcat/trunk/test/org/apache/tomcat/jni/TestSocket.java Modified: to

svn commit: r1455763 - /tomcat/trunk/test/org/apache/tomcat/jni/TestSocket.java

2013-03-12 Thread markt
Author: markt Date: Wed Mar 13 00:09:32 2013 New Revision: 1455763 URL: http://svn.apache.org/r1455763 Log: Problem now reproducible (need to drop chucksize to 2) Modified: tomcat/trunk/test/org/apache/tomcat/jni/TestSocket.java Modified: tomcat/trunk/test/org/apache/tomcat/jni/TestSocket.ja

Re: Strange APR/native behaviour

2013-03-12 Thread Mark Thomas
On 12/03/2013 18:25, Remy Maucherat wrote: > On Tue, 2013-03-12 at 13:25 +, Mark Thomas wrote: >> Thanks for the pointers. I tried a few of them (the less invasive ones) >> with no luck. I'm putting together a test case that demonstrates the >> problem. That should make it very simple to determ