Always use edge-triggered events.
This commit is contained in:
parent
47c16c65cc
commit
52c74e6633
|
@ -70,6 +70,7 @@ final class EpollEventDriver : PosixEventDriver {
|
||||||
{
|
{
|
||||||
//print("update %s %s", fd, mask);
|
//print("update %s %s", fd, mask);
|
||||||
epoll_event ev;
|
epoll_event ev;
|
||||||
|
ev.events |= EPOLLET;
|
||||||
//ev.events = EPOLLONESHOT;
|
//ev.events = EPOLLONESHOT;
|
||||||
if (mask & EventMask.read) ev.events |= EPOLLIN;
|
if (mask & EventMask.read) ev.events |= EPOLLIN;
|
||||||
if (mask & EventMask.write) ev.events |= EPOLLOUT;
|
if (mask & EventMask.write) ev.events |= EPOLLOUT;
|
||||||
|
|
Loading…
Reference in a new issue