You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-dev@httpd.apache.org by Aaron Bannert <aa...@clove.org> on 2002/03/27 23:18:49 UTC
Re: cvs commit: httpd-test/flood CHANGES flood_net.c flood_net.h flood_socket_keepalive.c
On Wed, Mar 27, 2002 at 09:38:03PM -0000, jerenkrantz@apache.org wrote:
> jerenkrantz 02/03/27 13:38:03
>
> Modified: flood CHANGES flood_net.c flood_net.h
> flood_socket_keepalive.c
> Log:
> Add check_socket call to flood_net.h. This attempts to determine if the
> other side has closed on us by doing a poll. From my observations on
> Solaris, it seems that when a FIN is received from the other side,
> a POLLIN event is generated. Odd. I'd think it should be POLLERR or
> POLLHUP, but that doesn't seem to be the case.
That's because a passive close is not an error, it just means the
server closed before the client (flood) did. If you're blocking
in read() you'll get a return of 0 bytes (EOF).
-aaron