Upstream: use EPOLLRDHUP to check broken connections (ticket #320). This allows to detect client connection close with pending data on Linux while processing upstream.