summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-09-06 21:00:36 +0000
committerChristian Grothoff <christian@grothoff.org>2016-09-06 21:00:36 +0000
commitc24725dc14b360a13d289c58949f8963343bb032 (patch)
tree7f9e777d594238a608ac3c0ff833f8e1cf81edb2
parentc07388889951945c7d010601409fc412cbffe02e (diff)
-patch from #4641
-rw-r--r--src/microhttpd/daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 30cbbd06..43c026ff 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -1486,7 +1486,7 @@ thread_main_handle_connection (void *data)
#if WINDOWS
/* drain signaling pipe before other processing */
if ( (MHD_INVALID_PIPE_ != spipe) &&
- (0 != (p[1].revents & (POLLERR | POLLHUP))) )
+ (0 != (p[1].revents & (POLLERR | POLLHUP | POLLIN))) )
MHD_pipe_drain_ (spipe);
#endif
if (MHD_NO ==