tcp: only ignore POLLHUP if no error

and revents is more than just POLLHUP