Mike Kaplinskiy : server: Always treat POLLHUP as a hangup, just special case checking TCP sockets.