[lkml]   [1999]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: 2.2: data loss after socket close

> After insertion of a loop with "ioctl (sd, FIONREAD, &char_waiting)" and "read
> all waiting chars into a dummy buffer" just before i close the socket it
> works with Linux 2.2.
> I will name this #ifdef "FLUSH_INPUT" instead of "LINUX22_WORKAROUND"
> to outline that the old socket handling of the application was not correct.

Aaa... Only not this! Your app must read data until EOF not depending
on any ifdefs.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:53    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean