aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r--src/microhttpd/daemon.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index a5e0f076..1a47b972 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -625,8 +625,10 @@ MHD_get_fdset (struct MHD_Daemon *daemon,
625 } 625 }
626 } 626 }
627#if DEBUG_CONNECT 627#if DEBUG_CONNECT
628#if HAVE_MESSAGES
628 MHD_DLOG (daemon, "Maximum socket in select set: %d\n", *max_fd); 629 MHD_DLOG (daemon, "Maximum socket in select set: %d\n", *max_fd);
629#endif 630#endif
631#endif
630 return MHD_YES; 632 return MHD_YES;
631} 633}
632 634
@@ -1276,9 +1278,12 @@ internal_add_connection (struct MHD_Daemon *daemon,
1276 if ( (MHD_YES == external_add) && 1278 if ( (MHD_YES == external_add) &&
1277 (-1 != daemon->wpipe[1]) && 1279 (-1 != daemon->wpipe[1]) &&
1278 (1 != WRITE (daemon->wpipe[1], "n", 1)) ) 1280 (1 != WRITE (daemon->wpipe[1], "n", 1)) )
1279 MHD_DLOG (daemon, 1281 {
1280 "failed to signal new connection via pipe"); 1282#if HAVE_MESSAGES
1281 1283 MHD_DLOG (daemon,
1284 "failed to signal new connection via pipe");
1285#endif
1286 }
1282#if EPOLL_SUPPORT 1287#if EPOLL_SUPPORT
1283 if (0 != (daemon->options & MHD_USE_EPOLL_LINUX_ONLY)) 1288 if (0 != (daemon->options & MHD_USE_EPOLL_LINUX_ONLY))
1284 { 1289 {