> 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 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. Are you positive the EAGAIN path is being taken? Or could it be an exception is being thrown (and swallowed), leaving result = 0, thereby adding the socket to the poller at line 93 and returning zero? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org