httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <aa...@clove.org>
Subject Re: cvs commit: httpd-test/flood CHANGES flood_net.c flood_net.h flood_socket_keepalive.c
Date Wed, 27 Mar 2002 22:18:49 GMT
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

Mime
View raw message