On Wed, Mar 27, 2002 at 09:38:03PM -0000, [EMAIL PROTECTED] 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