lkml.org 
[lkml]   [2003]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Patch][RFC] epoll and half closed TCP connections
> > read(), returns 0 right away		socket buffer is empty
>
> read will return -1 with errno=EAGAIN in that case, not zero.

Yes, my mistake. So the real issue (of the patch) is just the original
thing I posted about: you can't tell w/o another read() syscall if an
EOF has piggybacked in on an EPOLLIN event.

Thanks for being patient.

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

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