connection: drop EPOLLHUP / EPOLLERR interest
No reason to handle those events. We always need to dispatch all I/O,
anyway (think: partial shutdown), so we get the required hints from the
kernel syscalls. Simplify the code and avoid EPOLLHUP/ERR handling.
@@ -33,7 +33,7 @@ static int connection_init(Connection *connection,
dispatch_list,
dispatch_fn,
fd,
- EPOLLHUP | EPOLLERR | EPOLLIN | EPOLLOUT);
+ EPOLLIN | EPOLLOUT);
if (r)
return error_fold(r);
