[lkml]   [2003]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
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
More majordomo info at
Please read the FAQ at

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