On Sat, 18 Aug 2001, Daniel Walker wrote:
That seems to work .. Are there any other place where this POLLHUP problem might show it's teeth?
Doubt it. The previous patch concentrated all the issues of POLLHUP into that "if (...) return;" test, where it returns (and hence does not get polled) when the socket is still in the unconnected state where Linux may return POLLHUP... the only issue is that there may be other flags than WS_FD_NONBLOCKING that may mask the unconnected state, but I don't think so (for instance, UDP sockets does not have to be connected to be polled).