From f8944b0624adcf0f2daa7a2e9d5f95f5362fd664 Mon Sep 17 00:00:00 2001 From: Wiebe Cazemier Date: Tue, 22 Dec 2020 21:25:09 +0100 Subject: [PATCH] Handle epoll errors --- mainapp.cpp | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/mainapp.cpp b/mainapp.cpp index bd0eedd..3e2c0d4 100644 --- a/mainapp.cpp +++ b/mainapp.cpp @@ -85,6 +85,10 @@ void do_thread_work(ThreadData *threadData) continue; } } + if (cur_ev.events & (EPOLLERR | EPOLLHUP)) + { + threadData->removeClient(client); + } } catch(std::exception &ex) { -- libgit2 0.21.4