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.c22
1 files changed, 5 insertions, 17 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 775faa0b..a9151fc5 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -77,18 +77,6 @@
77 */ 77 */
78#define MHD_POOL_SIZE_DEFAULT (32 * 1024) 78#define MHD_POOL_SIZE_DEFAULT (32 * 1024)
79 79
80/**
81 * Print extra messages with reasons for closing
82 * sockets? (only adds non-error messages).
83 */
84#define DEBUG_CLOSE MHD_NO
85
86/**
87 * Print extra messages when establishing
88 * connections? (only adds non-error messages).
89 */
90#define DEBUG_CONNECT MHD_NO
91
92 80
93/* Forward declarations. */ 81/* Forward declarations. */
94 82
@@ -1081,7 +1069,7 @@ internal_get_fdset2 (struct MHD_Daemon *daemon,
1081 } 1069 }
1082 } 1070 }
1083#endif 1071#endif
1084#if DEBUG_CONNECT 1072#if _MHD_DEBUG_CONNECT
1085#ifdef HAVE_MESSAGES 1073#ifdef HAVE_MESSAGES
1086 if (NULL != max_fd) 1074 if (NULL != max_fd)
1087 MHD_DLOG (daemon, 1075 MHD_DLOG (daemon,
@@ -2178,7 +2166,7 @@ thread_main_handle_connection (void *data)
2178 } 2166 }
2179#endif /* UPGRADE_SUPPORT */ 2167#endif /* UPGRADE_SUPPORT */
2180 } 2168 }
2181#if DEBUG_CLOSE 2169#if _MHD_DEBUG_CLOSE
2182#ifdef HAVE_MESSAGES 2170#ifdef HAVE_MESSAGES
2183 MHD_DLOG (con->daemon, 2171 MHD_DLOG (con->daemon,
2184 _ ("Processing thread terminating. Closing connection.\n")); 2172 _ ("Processing thread terminating. Closing connection.\n"));
@@ -2449,7 +2437,7 @@ internal_add_connection (struct MHD_Daemon *daemon,
2449 2437
2450 2438
2451#ifdef HAVE_MESSAGES 2439#ifdef HAVE_MESSAGES
2452#if DEBUG_CONNECT 2440#if _MHD_DEBUG_CONNECT
2453 MHD_DLOG (daemon, 2441 MHD_DLOG (daemon,
2454 _ ("Accepted connection on socket %d.\n"), 2442 _ ("Accepted connection on socket %d.\n"),
2455 client_socket); 2443 client_socket);
@@ -2479,7 +2467,7 @@ internal_add_connection (struct MHD_Daemon *daemon,
2479 addr, 2467 addr,
2480 addrlen)) ) 2468 addrlen)) )
2481 { 2469 {
2482#if DEBUG_CLOSE 2470#if _MHD_DEBUG_CLOSE
2483#ifdef HAVE_MESSAGES 2471#ifdef HAVE_MESSAGES
2484 MHD_DLOG (daemon, 2472 MHD_DLOG (daemon,
2485 _ ("Connection rejected by application. Closing connection.\n")); 2473 _ ("Connection rejected by application. Closing connection.\n"));
@@ -3310,7 +3298,7 @@ MHD_accept_connection (struct MHD_Daemon *daemon)
3310 } 3298 }
3311#endif /* !USE_ACCEPT4 || !SOCK_CLOEXEC */ 3299#endif /* !USE_ACCEPT4 || !SOCK_CLOEXEC */
3312#ifdef HAVE_MESSAGES 3300#ifdef HAVE_MESSAGES
3313#if DEBUG_CONNECT 3301#if _MHD_DEBUG_CONNECT
3314 MHD_DLOG (daemon, 3302 MHD_DLOG (daemon,
3315 _ ("Accepted connection on socket %d\n"), 3303 _ ("Accepted connection on socket %d\n"),
3316 s); 3304 s);