kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit c12f2967439ca2dea1f868f23e2a78e184cf4705
parent c463ecb3cbf29e5d4dd7e0fad4a4a16d4da9d208
Author: Joris Vink <joris@coders.se>
Date:   Wed, 10 Oct 2018 14:33:26 +0200

missing EPOLLRDHUP check since event loop rework

Diffstat:
src/linux.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/linux.c b/src/linux.c @@ -124,7 +124,9 @@ kore_platform_event_wait(u_int64_t timer) if (events[i].events & EPOLLOUT) evt->flags |= KORE_EVENT_WRITE; - if (events[i].events & EPOLLERR|| events[i].events & EPOLLHUP) + if (events[i].events & EPOLLERR || + events[i].events & EPOLLHUP || + events[i].events & EPOLLRDHUP) r = 1; evt->handle(events[i].data.ptr, r);