fixed bug with a connection fd POLLHUP not being handled