httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roy T. Fielding" <>
Subject Re: client connection questions
Date Fri, 04 Sep 1998 07:27:41 GMT
>What would cause errno == EAGAIN?  Is this something all modules should check?

If any module sets the socket to non-blocking, it is possible to get EAGAIN
after any call to read/write until the socket is closed.  It is also
possible to get it if some silly operating system bug generates EAGAIN
without a specific non-block setting.  Checking for it is just defensive
programming and is a no-biggie, since it is very unlikely that a module
would go to the trouble of setting the socket to non-blocking.


View raw message