Commit f8944b0624adcf0f2daa7a2e9d5f95f5362fd664

Authored by Wiebe Cazemier
1 parent 962dec5e

Handle epoll errors

Showing 1 changed file with 4 additions and 0 deletions
mainapp.cpp
... ... @@ -85,6 +85,10 @@ void do_thread_work(ThreadData *threadData)
85 85 continue;
86 86 }
87 87 }
  88 + if (cur_ev.events & (EPOLLERR | EPOLLHUP))
  89 + {
  90 + threadData->removeClient(client);
  91 + }
88 92 }
89 93 catch(std::exception &ex)
90 94 {
... ...