/[Apache-SVN]
ViewVC logotype

Revision 178340


Jump to revision: Previous Next
Author: wsanchez
Date: Wed May 25 01:53:00 2005 UTC (4 years, 6 months ago)
Changed paths: 2
Log Message:
network_io/unix/sendrecv.c: Deal with EAGAIN after poll().

Following apr_wait_for_io_or_timeout(), we were doing I/O and not
dealing with EAGAIN.  It is legal for poll() to indicate that a socket
is available for writing and then for write() to fail with EAGAIN if
the state of the socket changed in between the poll() and write()
calls.  This only seems to actually happen on Mac OS 10.4 (Darwin 8).

Rather than trying write() only once, if we get an EAGAIN, continue to
call apr_wait_for_io_or_timeout() and try writing.

Changed paths:

Path Details
Directoryapr/apr/trunk/CHANGES modified , text changed
Directoryapr/apr/trunk/network_io/unix/sendrecv.c modified , text changed

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2