From c96b7665469679563ee642a42d175aa24a957f26 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 30 Aug 2018 14:15:56 -0700 Subject: fixes #687 POLLHUP is problematic on macOS too... Basically, we can ignore EV_EOF, as we wind up still alerting the corresponding events. EV_ERROR we still treat as HUP. (The EV_EOF was responsible for prematurely closing the socket and aborting transactions while there was still data in the socket buffers.) --- src/platform/posix/posix_pollq_kqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/platform') diff --git a/src/platform/posix/posix_pollq_kqueue.c b/src/platform/posix/posix_pollq_kqueue.c index 50874d14..1aef2a93 100644 --- a/src/platform/posix/posix_pollq_kqueue.c +++ b/src/platform/posix/posix_pollq_kqueue.c @@ -252,7 +252,7 @@ nni_posix_poll_thr(void *arg) continue; } pf = (void *) ev->udata; - if (ev->flags & (EV_ERROR | EV_EOF)) { + if (ev->flags & EV_ERROR) { revents |= POLLHUP; } -- cgit v1.2.3-70-g09d2