Merge pull request #1943 from def-/async-fix
Only handle EPOLLERR as an error event, as with EPOLLRDHUP there can sti...
This commit is contained in:
commit
a94ba527b2
1 changed files with 0 additions and 2 deletions
|
|
@ -157,8 +157,6 @@ elif defined(linux):
|
||||||
|
|
||||||
var evSet: set[Event] = {}
|
var evSet: set[Event] = {}
|
||||||
if (s.events[i].events and EPOLLERR) != 0: evSet = evSet + {EvError}
|
if (s.events[i].events and EPOLLERR) != 0: evSet = evSet + {EvError}
|
||||||
if (s.events[i].events and EPOLLHUP) != 0: evSet = evSet + {EvError}
|
|
||||||
if (s.events[i].events and EPOLLRDHUP) != 0: evSet = evSet + {EvError}
|
|
||||||
if (s.events[i].events and EPOLLIN) != 0: evSet = evSet + {EvRead}
|
if (s.events[i].events and EPOLLIN) != 0: evSet = evSet + {EvRead}
|
||||||
if (s.events[i].events and EPOLLOUT) != 0: evSet = evSet + {EvWrite}
|
if (s.events[i].events and EPOLLOUT) != 0: evSet = evSet + {EvWrite}
|
||||||
let selectorKey = s.fds[fd]
|
let selectorKey = s.fds[fd]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue