mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
Merge pull request #569 from jokea/unstable
mark fd as writable when EPOLLERR or EPOLLHUP is returned by epoll_wait.
This commit is contained in:
commit
a2db8e4801
@ -89,6 +89,8 @@ static int aeApiPoll(aeEventLoop *eventLoop, struct timeval *tvp) {
|
|||||||
|
|
||||||
if (e->events & EPOLLIN) mask |= AE_READABLE;
|
if (e->events & EPOLLIN) mask |= AE_READABLE;
|
||||||
if (e->events & EPOLLOUT) mask |= AE_WRITABLE;
|
if (e->events & EPOLLOUT) mask |= AE_WRITABLE;
|
||||||
|
if (e->events & EPOLLERR) mask |= AE_WRITABLE;
|
||||||
|
if (e->events & EPOLLHUP) mask |= AE_WRITABLE;
|
||||||
eventLoop->fired[j].fd = e->data.fd;
|
eventLoop->fired[j].fd = e->data.fd;
|
||||||
eventLoop->fired[j].mask = mask;
|
eventLoop->fired[j].mask = mask;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user