aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-03-23 22:30:47 +0000
committerChristian Grothoff <christian@grothoff.org>2011-03-23 22:30:47 +0000
commita244273450a9335a9ddcbe361876b98b8f1121bd (patch)
tree6fa65311811dfe780d4c542c0332e2e50577359b
parent2d15eceddf5b213e4c21137a12f267fee0e1c775 (diff)
downloadlibmicrohttpd-a244273450a9335a9ddcbe361876b98b8f1121bd.tar.gz
libmicrohttpd-a244273450a9335a9ddcbe361876b98b8f1121bd.zip
pollin issue
-rw-r--r--ChangeLog5
-rw-r--r--src/daemon/daemon.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9e8b8f52..e65172a8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
1Wed Mar 23 23:24:25 CET 2011
2 Do not use POLLIN when we only care about POLLHUP (significantly
3 improves performance when using MHD_USE_THREAD_PER_CONNECTION
4 in combination with MHD_USE_POLL). -ES
5
1Sun Mar 20 09:16:53 CET 2011 6Sun Mar 20 09:16:53 CET 2011
2 Fixing race when using MHD_USE_THREAD_PER_CONNECTION in combination 7 Fixing race when using MHD_USE_THREAD_PER_CONNECTION in combination
3 with MHD_USE_POLL. -CG 8 with MHD_USE_POLL. -CG
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index b85c8510..a2dbba0e 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -647,7 +647,7 @@ MHD_handle_connection (void *data)
647 647
648 fd = con->daemon->socket_fd; 648 fd = con->daemon->socket_fd;
649 p[1].fd = fd; 649 p[1].fd = fd;
650 p[1].events |= POLLIN; 650 p[1].events = 0; /* only care about POLLHUP */
651 651
652 if (poll (p, 652 if (poll (p,
653 (fd != -1) ? 2 : 1, 653 (fd != -1) ? 2 : 1,