Do not treat EPOLLRDHUP as a connection error.

This commit is contained in:
Joris Vink 2015-05-15 19:10:23 +02:00
parent a45a57f36a
commit e2ce032b02
1 changed files with 1 additions and 2 deletions

View File

@ -99,8 +99,7 @@ kore_platform_event_wait(u_int64_t timer)
type = *(u_int8_t *)events[i].data.ptr;
if (events[i].events & EPOLLERR ||
events[i].events & EPOLLHUP ||
events[i].events & EPOLLRDHUP) {
events[i].events & EPOLLHUP) {
switch (type) {
case KORE_TYPE_LISTENER:
fatal("failed on listener socket");