mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-01 21:13:10 +01:00
PollSet filters out some events #4194
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user