Re: Network socket disconnect unreliable

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Sun Feb 20 2000 - 10:27:58 EST


> Yep. Wonderful. When the socket disconnects, select doesn't return!

It does here. Do you have the right fd in your read set ?

> read/write code does as you show, but without the exception mask
> select() doesn't return after a disconnect. At least not on
> the 'current' versions of Linux (up to 2.3.41).

The exception mask shouldnt even be applied here. It is for reporting urgent
data packets.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:25 EST