apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sander Striker" <stri...@apache.org>
Subject RE: [Q] apr_poll_revents_get() before apr_accept() on Windows
Date Mon, 25 Mar 2002 08:27:30 GMT
> From: Saxon [mailto:saxon@saxon.cx]
> Sent: 25 March 2002 01:25

> Hi,
> I ran into the same problem a couple of days ago. I modified the
> implementation of apr_poll_revents_get() to the attached file, to fix the
> problem. Basically, if the socket is listening, then the WSARecv isn't done.
> Also I added another fix where if the WSARecv returns zero bytes on a
> stream-type socket, that indicates a graceful shutdown (APR_POLLHUP instead
> I can create a proper diff-style patch for this if people agree it's
> sensible?

Please _always_ send a unified diff.  Full files are hard to review since
it isn't directly obvious what has changed.
> cya,
> Saxon


View raw message