Azat Khuzhin 1df324d4c4 Fix EV_CLOSED detection/reporting (epoll only)
- EV_CLOSED is EPOLLRDHUP in epoll
- EPOLLRDHUP reported w/o EPOLLHUP if the socket closed with shutdown(SHUT_WR)
- EPOLLRDHUP reported w/  EPOLLHUP if the socket closed with close()
  so in this case epoll backend will detect this event as error
  (EV_READ|EV_WRITE), since the epoll_ctl() will return EPOLLRDHUP with
  EPOLLHUP set, but this is not correct, let's fix this.

Fixes: #984
(cherry picked from commit 972b456bf60e9a2f550ec45a14921c06e252c793)
2020-06-28 21:33:11 +03:00
..
2020-06-28 21:33:11 +03:00
2020-06-28 21:19:54 +03:00
2019-02-02 15:18:06 +03:00
2020-06-28 21:24:21 +03:00
2019-02-02 15:18:05 +03:00
2019-02-02 15:18:05 +03:00