apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saxon" <sa...@saxon.cx>
Subject Re: [Q] apr_poll_revents_get() before apr_accept() on Windows
Date Mon, 25 Mar 2002 08:37:24 GMT
Ok sure, here it is (attached).

bye,
Saxon

----- Original Message -----
From: "Sander Striker" <striker@apache.org>
To: "Saxon" <saxon@saxon.cx>; <dev@apr.apache.org>
Sent: Monday, March 25, 2002 4:27 PM
Subject: RE: [Q] apr_poll_revents_get() before apr_accept() on Windows


> > 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
> > of APR_POLLIN).
> >
> > 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
>
> Sander

Mime
View raw message