lkml.org 
[lkml]   [2000]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Network socket disconnect unreliable
Date
From
> 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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [from the cache]
©2003-2011 Jasper Spaans