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.

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 write notifications. The poller immediately returns the socket as
ready for write. Another write is attempted that returns EAGAIN and the
code enters an infinite loop with no more data ever written to the socket.

If I add a delay around line 46 that slows the rate of writing down,
EAGAIN is never returned and the test completes successfully.

I assume I am doing something wrong. Pointers appreciated.

Mark


[1]
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/upgrade/AprServletOutputStream.java?annotate=1455314

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to