From d640c659a250c7157b28efe35ec6808dcf4e0ff3 Mon Sep 17 00:00:00 2001 From: Aleksandar Fabijanic Date: Sat, 21 Oct 2023 16:22:44 +0200 Subject: [PATCH] PollSet filters out some events #4194 --- Net/src/PollSet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Net/src/PollSet.cpp b/Net/src/PollSet.cpp index a1b819201..80b4a6723 100644 --- a/Net/src/PollSet.cpp +++ b/Net/src/PollSet.cpp @@ -207,9 +207,9 @@ public: SocketMap::iterator it = _socketMap.find(_events[i].data.ptr); if (it != _socketMap.end()) { - if (_events[i].events & EPOLLIN) + if (_events[i].events & (EPOLLIN | EPOLLRDNORM | EPOLLHUP)) result[it->second.first] |= PollSet::POLL_READ; - if (_events[i].events & EPOLLOUT) + if (_events[i].events & (EPOLLOUT | EPOLLWRNORM)) result[it->second.first] |= PollSet::POLL_WRITE; if (_events[i].events & EPOLLERR) result[it->second.first] |= PollSet::POLL_ERROR;