tcp: only ignore POLLHUP if no error

and revents is more than just POLLHUP
Merge branch 'master' into topic/routing