diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/action_suspend.c | 2 | ||||
-rw-r--r-- | src/lib/connection_add.c | 12 | ||||
-rw-r--r-- | src/lib/connection_call_handlers.c | 20 | ||||
-rw-r--r-- | src/lib/connection_cleanup.c | 4 | ||||
-rw-r--r-- | src/lib/connection_finish_forward.c | 4 | ||||
-rw-r--r-- | src/lib/daemon_close_all_connections.c | 6 | ||||
-rw-r--r-- | src/lib/daemon_destroy.c | 6 | ||||
-rw-r--r-- | src/lib/daemon_epoll.c | 4 | ||||
-rw-r--r-- | src/lib/daemon_get_timeout.c | 2 | ||||
-rw-r--r-- | src/lib/daemon_ip_limit.c | 6 | ||||
-rw-r--r-- | src/lib/daemon_options.c | 6 | ||||
-rw-r--r-- | src/lib/daemon_quiesce.c | 10 | ||||
-rw-r--r-- | src/lib/daemon_select.c | 8 | ||||
-rw-r--r-- | src/lib/daemon_start.c | 22 | ||||
-rw-r--r-- | src/lib/init.c | 4 | ||||
-rw-r--r-- | src/lib/request_resume.c | 6 | ||||
-rw-r--r-- | src/lib/upgrade_process.c | 4 |
17 files changed, 63 insertions, 63 deletions
diff --git a/src/lib/action_suspend.c b/src/lib/action_suspend.c index 370a1f6a..b9956d5b 100644 --- a/src/lib/action_suspend.c +++ b/src/lib/action_suspend.c | |||
@@ -85,7 +85,7 @@ suspend_action (void *cls, | |||
85 | EPOLL_CTL_DEL, | 85 | EPOLL_CTL_DEL, |
86 | connection->socket_fd, | 86 | connection->socket_fd, |
87 | NULL)) | 87 | NULL)) |
88 | MHD_PANIC (_ ("Failed to remove FD from epoll set\n")); | 88 | MHD_PANIC (_ ("Failed to remove FD from epoll set.\n")); |
89 | connection->epoll_state &= ~MHD_EPOLL_STATE_IN_EPOLL_SET; | 89 | connection->epoll_state &= ~MHD_EPOLL_STATE_IN_EPOLL_SET; |
90 | } | 90 | } |
91 | connection->epoll_state |= MHD_EPOLL_STATE_SUSPENDED; | 91 | connection->epoll_state |= MHD_EPOLL_STATE_SUSPENDED; |
diff --git a/src/lib/connection_add.c b/src/lib/connection_add.c index 878380ae..91dd0076 100644 --- a/src/lib/connection_add.c +++ b/src/lib/connection_add.c | |||
@@ -141,7 +141,7 @@ thread_main_handle_connection (void *data) | |||
141 | #ifdef HAVE_MESSAGES | 141 | #ifdef HAVE_MESSAGES |
142 | MHD_DLOG (con->daemon, | 142 | MHD_DLOG (con->daemon, |
143 | MHD_SC_SOCKET_OUTSIDE_OF_FDSET_RANGE, | 143 | MHD_SC_SOCKET_OUTSIDE_OF_FDSET_RANGE, |
144 | _ ("Failed to add FD to fd_set\n")); | 144 | _ ("Failed to add FD to fd_set.\n")); |
145 | #endif | 145 | #endif |
146 | goto exit; | 146 | goto exit; |
147 | } | 147 | } |
@@ -286,7 +286,7 @@ thread_main_handle_connection (void *data) | |||
286 | #ifdef HAVE_MESSAGES | 286 | #ifdef HAVE_MESSAGES |
287 | MHD_DLOG (con->daemon, | 287 | MHD_DLOG (con->daemon, |
288 | MHD_SC_SOCKET_OUTSIDE_OF_FDSET_RANGE, | 288 | MHD_SC_SOCKET_OUTSIDE_OF_FDSET_RANGE, |
289 | _ ("Failed to add FD to fd_set\n")); | 289 | _ ("Failed to add FD to fd_set.\n")); |
290 | #endif | 290 | #endif |
291 | goto exit; | 291 | goto exit; |
292 | } | 292 | } |
@@ -427,7 +427,7 @@ thread_main_handle_connection (void *data) | |||
427 | #ifdef HAVE_MESSAGES | 427 | #ifdef HAVE_MESSAGES |
428 | MHD_DLOG (con->daemon, | 428 | MHD_DLOG (con->daemon, |
429 | MHD_SC_THREAD_TERMINATING, | 429 | MHD_SC_THREAD_TERMINATING, |
430 | _ ("Processing thread terminating. Closing connection\n")); | 430 | _ ("Processing thread terminating. Closing connection.\n")); |
431 | #endif | 431 | #endif |
432 | #endif | 432 | #endif |
433 | if (MHD_REQUEST_CLOSED != con->request.state) | 433 | if (MHD_REQUEST_CLOSED != con->request.state) |
@@ -669,7 +669,7 @@ internal_add_connection (struct MHD_Daemon *daemon, | |||
669 | #if DEBUG_CONNECT | 669 | #if DEBUG_CONNECT |
670 | MHD_DLOG (daemon, | 670 | MHD_DLOG (daemon, |
671 | MHD_SC_CONNECTION_ACCEPTED, | 671 | MHD_SC_CONNECTION_ACCEPTED, |
672 | _ ("Accepted connection on socket %d\n"), | 672 | _ ("Accepted connection on socket %d.\n"), |
673 | client_socket); | 673 | client_socket); |
674 | #endif | 674 | #endif |
675 | #endif | 675 | #endif |
@@ -893,7 +893,7 @@ internal_add_connection (struct MHD_Daemon *daemon, | |||
893 | MHD_DLOG (daemon, | 893 | MHD_DLOG (daemon, |
894 | MHD_SC_ITC_USE_FAILED, | 894 | MHD_SC_ITC_USE_FAILED, |
895 | _ ( | 895 | _ ( |
896 | "Failed to signal new connection via inter-thread communication channel (not necessarily fatal, continuing anyway).")); | 896 | "Failed to signal new connection via inter-thread communication channel (not necessarily fatal, continuing anyway).\n")); |
897 | #endif | 897 | #endif |
898 | } | 898 | } |
899 | return MHD_SC_OK; | 899 | return MHD_SC_OK; |
@@ -1124,7 +1124,7 @@ MHD_accept_connection_ (struct MHD_Daemon *daemon) | |||
1124 | #if DEBUG_CONNECT | 1124 | #if DEBUG_CONNECT |
1125 | MHD_DLOG (daemon, | 1125 | MHD_DLOG (daemon, |
1126 | MHD_SC_CONNECTION_ACCEPTED, | 1126 | MHD_SC_CONNECTION_ACCEPTED, |
1127 | _ ("Accepted connection on socket %d\n"), | 1127 | _ ("Accepted connection on socket %d.\n"), |
1128 | s); | 1128 | s); |
1129 | #endif | 1129 | #endif |
1130 | #endif | 1130 | #endif |
diff --git a/src/lib/connection_call_handlers.c b/src/lib/connection_call_handlers.c index fa79952b..634a9693 100644 --- a/src/lib/connection_call_handlers.c +++ b/src/lib/connection_call_handlers.c | |||
@@ -621,7 +621,7 @@ try_ready_normal_body (struct MHD_Request *request) | |||
621 | CONNECTION_CLOSE_ERROR (connection, | 621 | CONNECTION_CLOSE_ERROR (connection, |
622 | MHD_SC_APPLICATION_DATA_GENERATION_FAILURE_CLOSED, | 622 | MHD_SC_APPLICATION_DATA_GENERATION_FAILURE_CLOSED, |
623 | _ ( | 623 | _ ( |
624 | "Closing connection (application reported error generating data)\n")); | 624 | "Closing connection (application reported error generating data).\n")); |
625 | return false; | 625 | return false; |
626 | } | 626 | } |
627 | response->data_start = request->response_write_position; | 627 | response->data_start = request->response_write_position; |
@@ -671,7 +671,7 @@ try_ready_chunked_body (struct MHD_Request *request) | |||
671 | /* not enough memory */ | 671 | /* not enough memory */ |
672 | CONNECTION_CLOSE_ERROR (connection, | 672 | CONNECTION_CLOSE_ERROR (connection, |
673 | MHD_SC_CONNECTION_POOL_MALLOC_FAILURE, | 673 | MHD_SC_CONNECTION_POOL_MALLOC_FAILURE, |
674 | _ ("Closing connection (out of memory)\n")); | 674 | _ ("Closing connection (out of memory).\n")); |
675 | return false; | 675 | return false; |
676 | } | 676 | } |
677 | buf = MHD_pool_allocate (connection->pool, | 677 | buf = MHD_pool_allocate (connection->pool, |
@@ -718,7 +718,7 @@ try_ready_chunked_body (struct MHD_Request *request) | |||
718 | CONNECTION_CLOSE_ERROR (connection, | 718 | CONNECTION_CLOSE_ERROR (connection, |
719 | MHD_SC_APPLICATION_DATA_GENERATION_FAILURE_CLOSED, | 719 | MHD_SC_APPLICATION_DATA_GENERATION_FAILURE_CLOSED, |
720 | _ ( | 720 | _ ( |
721 | "Closing connection (application error generating response)\n")); | 721 | "Closing connection (application error generating response).\n")); |
722 | return false; | 722 | return false; |
723 | } | 723 | } |
724 | if ( (((ssize_t) MHD_CONTENT_READER_END_OF_STREAM) == ret) || | 724 | if ( (((ssize_t) MHD_CONTENT_READER_END_OF_STREAM) == ret) || |
@@ -886,7 +886,7 @@ MHD_request_handle_write_ (struct MHD_Request *request) | |||
886 | data_write_offset = request->response_write_position | 886 | data_write_offset = request->response_write_position |
887 | - response->data_start; | 887 | - response->data_start; |
888 | if (data_write_offset > (uint64_t) SIZE_MAX) | 888 | if (data_write_offset > (uint64_t) SIZE_MAX) |
889 | MHD_PANIC (_ ("Data offset exceeds limit")); | 889 | MHD_PANIC (_ ("Data offset exceeds limit.\n")); |
890 | ret = connection->send_cls (connection, | 890 | ret = connection->send_cls (connection, |
891 | &response->data | 891 | &response->data |
892 | [(size_t) data_write_offset], | 892 | [(size_t) data_write_offset], |
@@ -996,7 +996,7 @@ MHD_request_handle_write_ (struct MHD_Request *request) | |||
996 | mhd_assert (0); | 996 | mhd_assert (0); |
997 | CONNECTION_CLOSE_ERROR (connection, | 997 | CONNECTION_CLOSE_ERROR (connection, |
998 | MHD_SC_STATEMACHINE_FAILURE_CONNECTION_CLOSED, | 998 | MHD_SC_STATEMACHINE_FAILURE_CONNECTION_CLOSED, |
999 | _ ("Internal error\n")); | 999 | _ ("Internal error.\n")); |
1000 | break; | 1000 | break; |
1001 | } | 1001 | } |
1002 | } | 1002 | } |
@@ -1641,7 +1641,7 @@ transmit_error_response (struct MHD_Request *request, | |||
1641 | CONNECTION_CLOSE_ERROR (request->connection, | 1641 | CONNECTION_CLOSE_ERROR (request->connection, |
1642 | ec, | 1642 | ec, |
1643 | _ ( | 1643 | _ ( |
1644 | "Closing connection (failed to create response header)\n")); | 1644 | "Closing connection (failed to create response header).\n")); |
1645 | } | 1645 | } |
1646 | else | 1646 | else |
1647 | { | 1647 | { |
@@ -2768,7 +2768,7 @@ process_request_body (struct MHD_Request *request) | |||
2768 | __FILE__, | 2768 | __FILE__, |
2769 | __LINE__ | 2769 | __LINE__ |
2770 | #ifdef HAVE_MESSAGES | 2770 | #ifdef HAVE_MESSAGES |
2771 | , _ ("libmicrohttpd API violation") | 2771 | , _ ("libmicrohttpd API violation.\n") |
2772 | #else | 2772 | #else |
2773 | , NULL | 2773 | , NULL |
2774 | #endif | 2774 | #endif |
@@ -2872,7 +2872,7 @@ cleanup_connection (struct MHD_Connection *connection) | |||
2872 | MHD_DLOG (daemon, | 2872 | MHD_DLOG (daemon, |
2873 | MHD_SC_ITC_USE_FAILED, | 2873 | MHD_SC_ITC_USE_FAILED, |
2874 | _ ( | 2874 | _ ( |
2875 | "Failed to signal end of connection via inter-thread communication channel")); | 2875 | "Failed to signal end of connection via inter-thread communication channel.\n")); |
2876 | #endif | 2876 | #endif |
2877 | } | 2877 | } |
2878 | } | 2878 | } |
@@ -3366,7 +3366,7 @@ MHD_request_handle_idle_ (struct MHD_Request *request) | |||
3366 | CONNECTION_CLOSE_ERROR (connection, | 3366 | CONNECTION_CLOSE_ERROR (connection, |
3367 | MHD_SC_FAILED_RESPONSE_HEADER_GENERATION, | 3367 | MHD_SC_FAILED_RESPONSE_HEADER_GENERATION, |
3368 | _ ( | 3368 | _ ( |
3369 | "Closing connection (failed to create response header)\n")); | 3369 | "Closing connection (failed to create response header).\n")); |
3370 | continue; | 3370 | continue; |
3371 | } | 3371 | } |
3372 | request->state = MHD_REQUEST_HEADERS_SENDING; | 3372 | request->state = MHD_REQUEST_HEADERS_SENDING; |
@@ -3481,7 +3481,7 @@ MHD_request_handle_idle_ (struct MHD_Request *request) | |||
3481 | CONNECTION_CLOSE_ERROR (connection, | 3481 | CONNECTION_CLOSE_ERROR (connection, |
3482 | MHD_SC_FAILED_RESPONSE_HEADER_GENERATION, | 3482 | MHD_SC_FAILED_RESPONSE_HEADER_GENERATION, |
3483 | _ ( | 3483 | _ ( |
3484 | "Closing connection (failed to create response header)\n")); | 3484 | "Closing connection (failed to create response header).\n")); |
3485 | continue; | 3485 | continue; |
3486 | } | 3486 | } |
3487 | if ( (! request->have_chunked_upload) || | 3487 | if ( (! request->have_chunked_upload) || |
diff --git a/src/lib/connection_cleanup.c b/src/lib/connection_cleanup.c index d03bc046..a9224524 100644 --- a/src/lib/connection_cleanup.c +++ b/src/lib/connection_cleanup.c | |||
@@ -90,7 +90,7 @@ MHD_connection_cleanup_ (struct MHD_Daemon *daemon) | |||
90 | if ( (MHD_TM_THREAD_PER_CONNECTION == daemon->threading_mode) && | 90 | if ( (MHD_TM_THREAD_PER_CONNECTION == daemon->threading_mode) && |
91 | (! pos->thread_joined) && | 91 | (! pos->thread_joined) && |
92 | (! MHD_join_thread_ (pos->pid.handle)) ) | 92 | (! MHD_join_thread_ (pos->pid.handle)) ) |
93 | MHD_PANIC (_ ("Failed to join a thread\n")); | 93 | MHD_PANIC (_ ("Failed to join a thread.\n")); |
94 | #ifdef UPGRADE_SUPPORT | 94 | #ifdef UPGRADE_SUPPORT |
95 | connection_cleanup_upgraded (pos); | 95 | connection_cleanup_upgraded (pos); |
96 | #endif /* UPGRADE_SUPPORT */ | 96 | #endif /* UPGRADE_SUPPORT */ |
@@ -135,7 +135,7 @@ MHD_connection_cleanup_ (struct MHD_Daemon *daemon) | |||
135 | EPOLL_CTL_DEL, | 135 | EPOLL_CTL_DEL, |
136 | pos->socket_fd, | 136 | pos->socket_fd, |
137 | NULL)) | 137 | NULL)) |
138 | MHD_PANIC (_ ("Failed to remove FD from epoll set\n")); | 138 | MHD_PANIC (_ ("Failed to remove FD from epoll set.\n")); |
139 | pos->epoll_state &= ~MHD_EPOLL_STATE_IN_EPOLL_SET; | 139 | pos->epoll_state &= ~MHD_EPOLL_STATE_IN_EPOLL_SET; |
140 | } | 140 | } |
141 | } | 141 | } |
diff --git a/src/lib/connection_finish_forward.c b/src/lib/connection_finish_forward.c index 1a4bdfeb..74b5b48f 100644 --- a/src/lib/connection_finish_forward.c +++ b/src/lib/connection_finish_forward.c | |||
@@ -56,7 +56,7 @@ MHD_connection_finish_forward_ (struct MHD_Connection *connection) | |||
56 | connection->socket_fd, | 56 | connection->socket_fd, |
57 | NULL)) ) | 57 | NULL)) ) |
58 | { | 58 | { |
59 | MHD_PANIC (_ ("Failed to remove FD from epoll set\n")); | 59 | MHD_PANIC (_ ("Failed to remove FD from epoll set.\n")); |
60 | } | 60 | } |
61 | if (urh->in_eready_list) | 61 | if (urh->in_eready_list) |
62 | { | 62 | { |
@@ -75,7 +75,7 @@ MHD_connection_finish_forward_ (struct MHD_Connection *connection) | |||
75 | urh->mhd.socket, | 75 | urh->mhd.socket, |
76 | NULL)) ) | 76 | NULL)) ) |
77 | { | 77 | { |
78 | MHD_PANIC (_ ("Failed to remove FD from epoll set\n")); | 78 | MHD_PANIC (_ ("Failed to remove FD from epoll set.\n")); |
79 | } | 79 | } |
80 | #endif /* EPOLL_SUPPORT */ | 80 | #endif /* EPOLL_SUPPORT */ |
81 | /* Reflect remote disconnect to application by breaking | 81 | /* Reflect remote disconnect to application by breaking |
diff --git a/src/lib/daemon_close_all_connections.c b/src/lib/daemon_close_all_connections.c index 20ae743e..6d19240e 100644 --- a/src/lib/daemon_close_all_connections.c +++ b/src/lib/daemon_close_all_connections.c | |||
@@ -183,7 +183,7 @@ MHD_daemon_close_all_connections_ (struct MHD_Daemon *daemon) | |||
183 | (! MHD_itc_activate_ (daemon->itc, | 183 | (! MHD_itc_activate_ (daemon->itc, |
184 | "e")) ) | 184 | "e")) ) |
185 | MHD_PANIC (_ ( | 185 | MHD_PANIC (_ ( |
186 | "Failed to signal shutdown via inter-thread communication channel")); | 186 | "Failed to signal shutdown via inter-thread communication channel.\n")); |
187 | #endif | 187 | #endif |
188 | } | 188 | } |
189 | 189 | ||
@@ -197,7 +197,7 @@ MHD_daemon_close_all_connections_ (struct MHD_Daemon *daemon) | |||
197 | { | 197 | { |
198 | MHD_mutex_unlock_chk_ (&daemon->cleanup_connection_mutex); | 198 | MHD_mutex_unlock_chk_ (&daemon->cleanup_connection_mutex); |
199 | if (! MHD_join_thread_ (pos->pid.handle)) | 199 | if (! MHD_join_thread_ (pos->pid.handle)) |
200 | MHD_PANIC (_ ("Failed to join a thread\n")); | 200 | MHD_PANIC (_ ("Failed to join a thread.\n")); |
201 | MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex); | 201 | MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex); |
202 | pos->thread_joined = true; | 202 | pos->thread_joined = true; |
203 | /* The thread may have concurrently modified the DLL, | 203 | /* The thread may have concurrently modified the DLL, |
@@ -227,7 +227,7 @@ MHD_daemon_close_all_connections_ (struct MHD_Daemon *daemon) | |||
227 | { | 227 | { |
228 | if ( (used_thr_p_c) && | 228 | if ( (used_thr_p_c) && |
229 | (! pos->thread_joined) ) | 229 | (! pos->thread_joined) ) |
230 | MHD_PANIC (_ ("Failed to join a thread\n")); | 230 | MHD_PANIC (_ ("Failed to join a thread.\n")); |
231 | close_connection (pos); | 231 | close_connection (pos); |
232 | } | 232 | } |
233 | MHD_connection_cleanup_ (daemon); | 233 | MHD_connection_cleanup_ (daemon); |
diff --git a/src/lib/daemon_destroy.c b/src/lib/daemon_destroy.c index e40ff520..07cd7158 100644 --- a/src/lib/daemon_destroy.c +++ b/src/lib/daemon_destroy.c | |||
@@ -53,7 +53,7 @@ stop_workers (struct MHD_Daemon *daemon) | |||
53 | if (! MHD_itc_activate_ (daemon->worker_pool[i].itc, | 53 | if (! MHD_itc_activate_ (daemon->worker_pool[i].itc, |
54 | "e")) | 54 | "e")) |
55 | MHD_PANIC (_ ( | 55 | MHD_PANIC (_ ( |
56 | "Failed to signal shutdown via inter-thread communication channel.")); | 56 | "Failed to signal shutdown via inter-thread communication channel.\n")); |
57 | } | 57 | } |
58 | else | 58 | else |
59 | { | 59 | { |
@@ -121,7 +121,7 @@ MHD_daemon_destroy (struct MHD_Daemon *daemon) | |||
121 | if (! MHD_itc_activate_ (daemon->itc, | 121 | if (! MHD_itc_activate_ (daemon->itc, |
122 | "e")) | 122 | "e")) |
123 | MHD_PANIC (_ ( | 123 | MHD_PANIC (_ ( |
124 | "Failed to signal shutdown via inter-thread communication channel")); | 124 | "Failed to signal shutdown via inter-thread communication channel.\n")); |
125 | } | 125 | } |
126 | else | 126 | else |
127 | { | 127 | { |
@@ -139,7 +139,7 @@ MHD_daemon_destroy (struct MHD_Daemon *daemon) | |||
139 | 139 | ||
140 | if (! MHD_join_thread_ (daemon->pid.handle)) | 140 | if (! MHD_join_thread_ (daemon->pid.handle)) |
141 | { | 141 | { |
142 | MHD_PANIC (_ ("Failed to join a thread\n")); | 142 | MHD_PANIC (_ ("Failed to join a thread.\n")); |
143 | } | 143 | } |
144 | /* close_all_connections() was called in daemon thread. */ | 144 | /* close_all_connections() was called in daemon thread. */ |
145 | } | 145 | } |
diff --git a/src/lib/daemon_epoll.c b/src/lib/daemon_epoll.c index ff3e846c..7105aaba 100644 --- a/src/lib/daemon_epoll.c +++ b/src/lib/daemon_epoll.c | |||
@@ -266,7 +266,7 @@ MHD_daemon_epoll_ (struct MHD_Daemon *daemon, | |||
266 | EPOLL_CTL_DEL, | 266 | EPOLL_CTL_DEL, |
267 | ls, | 267 | ls, |
268 | NULL)) | 268 | NULL)) |
269 | MHD_PANIC ("Failed to remove listen FD from epoll set\n"); | 269 | MHD_PANIC ("Failed to remove listen FD from epoll set.\n"); |
270 | daemon->listen_socket_in_epoll = false; | 270 | daemon->listen_socket_in_epoll = false; |
271 | } | 271 | } |
272 | 272 | ||
@@ -303,7 +303,7 @@ MHD_daemon_epoll_ (struct MHD_Daemon *daemon, | |||
303 | EPOLL_CTL_DEL, | 303 | EPOLL_CTL_DEL, |
304 | ls, | 304 | ls, |
305 | NULL)) | 305 | NULL)) |
306 | MHD_PANIC (_ ("Failed to remove listen FD from epoll set\n")); | 306 | MHD_PANIC (_ ("Failed to remove listen FD from epoll set.\n")); |
307 | daemon->listen_socket_in_epoll = false; | 307 | daemon->listen_socket_in_epoll = false; |
308 | } | 308 | } |
309 | 309 | ||
diff --git a/src/lib/daemon_get_timeout.c b/src/lib/daemon_get_timeout.c index 8e343008..01cb148a 100644 --- a/src/lib/daemon_get_timeout.c +++ b/src/lib/daemon_get_timeout.c | |||
@@ -58,7 +58,7 @@ MHD_daemon_get_timeout (struct MHD_Daemon *daemon, | |||
58 | #ifdef HAVE_MESSAGES | 58 | #ifdef HAVE_MESSAGES |
59 | MHD_DLOG (daemon, | 59 | MHD_DLOG (daemon, |
60 | MHD_SC_CONFIGURATION_MISMATCH_FOR_GET_TIMEOUT, | 60 | MHD_SC_CONFIGURATION_MISMATCH_FOR_GET_TIMEOUT, |
61 | _ ("Illegal call to MHD_get_timeout\n")); | 61 | _ ("Illegal call to MHD_get_timeout.\n")); |
62 | #endif | 62 | #endif |
63 | return MHD_SC_CONFIGURATION_MISSMATCH_FOR_GET_TIMEOUT; | 63 | return MHD_SC_CONFIGURATION_MISSMATCH_FOR_GET_TIMEOUT; |
64 | } | 64 | } |
diff --git a/src/lib/daemon_ip_limit.c b/src/lib/daemon_ip_limit.c index 4b33e029..e06867ca 100644 --- a/src/lib/daemon_ip_limit.c +++ b/src/lib/daemon_ip_limit.c | |||
@@ -221,7 +221,7 @@ MHD_ip_limit_add (struct MHD_Daemon *daemon, | |||
221 | #ifdef HAVE_MESSAGES | 221 | #ifdef HAVE_MESSAGES |
222 | MHD_DLOG (daemon, | 222 | MHD_DLOG (daemon, |
223 | MHD_SC_IP_COUNTER_FAILURE, | 223 | MHD_SC_IP_COUNTER_FAILURE, |
224 | _ ("Failed to add IP connection count node\n")); | 224 | _ ("Failed to add IP connection count node.\n")); |
225 | #endif | 225 | #endif |
226 | MHD_ip_count_unlock (daemon); | 226 | MHD_ip_count_unlock (daemon); |
227 | free (key); | 227 | free (key); |
@@ -279,13 +279,13 @@ MHD_ip_limit_del (struct MHD_Daemon *daemon, | |||
279 | { | 279 | { |
280 | /* Something's wrong if we couldn't find an IP address | 280 | /* Something's wrong if we couldn't find an IP address |
281 | * that was previously added */ | 281 | * that was previously added */ |
282 | MHD_PANIC (_ ("Failed to find previously-added IP address\n")); | 282 | MHD_PANIC (_ ("Failed to find previously-added IP address.\n")); |
283 | } | 283 | } |
284 | found_key = (struct MHD_IPCount *) *nodep; | 284 | found_key = (struct MHD_IPCount *) *nodep; |
285 | /* Validate existing count for IP address */ | 285 | /* Validate existing count for IP address */ |
286 | if (0 == found_key->count) | 286 | if (0 == found_key->count) |
287 | { | 287 | { |
288 | MHD_PANIC (_ ("Previously-added IP address had counter of zero\n")); | 288 | MHD_PANIC (_ ("Previously-added IP address had counter of zero.\n")); |
289 | } | 289 | } |
290 | /* Remove the node entirely if count reduces to 0 */ | 290 | /* Remove the node entirely if count reduces to 0 */ |
291 | if (0 == --found_key->count) | 291 | if (0 == --found_key->count) |
diff --git a/src/lib/daemon_options.c b/src/lib/daemon_options.c index fa84fe83..abf1fbd3 100644 --- a/src/lib/daemon_options.c +++ b/src/lib/daemon_options.c | |||
@@ -620,7 +620,7 @@ MHD_daemon_connection_memory_limit (struct MHD_Daemon *daemon, | |||
620 | size_t memory_increment_b) | 620 | size_t memory_increment_b) |
621 | { | 621 | { |
622 | if (memory_increment_b >= memory_limit_b) | 622 | if (memory_increment_b >= memory_limit_b) |
623 | MHD_PANIC ("sane memory increment must be below memory limit"); | 623 | MHD_PANIC ("Sane memory increment must be below memory limit.\n"); |
624 | daemon->connection_memory_limit_b = memory_limit_b; | 624 | daemon->connection_memory_limit_b = memory_limit_b; |
625 | daemon->connection_memory_increment_b = memory_increment_b; | 625 | daemon->connection_memory_increment_b = memory_increment_b; |
626 | } | 626 | } |
@@ -725,7 +725,7 @@ MHD_daemon_digest_auth_random (struct MHD_Daemon *daemon, | |||
725 | (void) daemon; | 725 | (void) daemon; |
726 | (void) buf_size; | 726 | (void) buf_size; |
727 | (void) buf; | 727 | (void) buf; |
728 | MHD_PANIC ("digest authentication not supported by this build"); | 728 | MHD_PANIC ("Digest authentication not supported by this build.\n"); |
729 | #endif | 729 | #endif |
730 | } | 730 | } |
731 | 731 | ||
@@ -747,7 +747,7 @@ MHD_daemon_digest_auth_nc_length (struct MHD_Daemon *daemon, | |||
747 | { | 747 | { |
748 | #ifdef HAVE_MESSAGES | 748 | #ifdef HAVE_MESSAGES |
749 | MHD_DLOG (daemon, | 749 | MHD_DLOG (daemon, |
750 | _ ("Specified value for NC_SIZE too large\n")); | 750 | _ ("Specified value for NC_SIZE too large.\n")); |
751 | #endif | 751 | #endif |
752 | return MHD_SC_DIGEST_AUTH_NC_LENGTH_TOO_BIG; | 752 | return MHD_SC_DIGEST_AUTH_NC_LENGTH_TOO_BIG; |
753 | } | 753 | } |
diff --git a/src/lib/daemon_quiesce.c b/src/lib/daemon_quiesce.c index 6231bf39..874536d0 100644 --- a/src/lib/daemon_quiesce.c +++ b/src/lib/daemon_quiesce.c | |||
@@ -58,7 +58,7 @@ MHD_daemon_quiesce (struct MHD_Daemon *daemon) | |||
58 | #ifdef HAVE_MESSAGES | 58 | #ifdef HAVE_MESSAGES |
59 | MHD_DLOG (daemon, | 59 | MHD_DLOG (daemon, |
60 | MHD_SC_SYSCALL_QUIESCE_REQUIRES_ITC, | 60 | MHD_SC_SYSCALL_QUIESCE_REQUIRES_ITC, |
61 | "Using MHD_quiesce_daemon in this mode requires ITC\n"); | 61 | "Using MHD_quiesce_daemon in this mode requires ITC.\n"); |
62 | #endif | 62 | #endif |
63 | return MHD_INVALID_SOCKET; | 63 | return MHD_INVALID_SOCKET; |
64 | } | 64 | } |
@@ -81,7 +81,7 @@ MHD_daemon_quiesce (struct MHD_Daemon *daemon) | |||
81 | EPOLL_CTL_DEL, | 81 | EPOLL_CTL_DEL, |
82 | listen_socket, | 82 | listen_socket, |
83 | NULL)) | 83 | NULL)) |
84 | MHD_PANIC (_ ("Failed to remove listen FD from epoll set\n")); | 84 | MHD_PANIC (_ ("Failed to remove listen FD from epoll set.\n")); |
85 | worker->listen_socket_in_epoll = false; | 85 | worker->listen_socket_in_epoll = false; |
86 | } | 86 | } |
87 | else | 87 | else |
@@ -91,7 +91,7 @@ MHD_daemon_quiesce (struct MHD_Daemon *daemon) | |||
91 | if (! MHD_itc_activate_ (worker->itc, | 91 | if (! MHD_itc_activate_ (worker->itc, |
92 | "q")) | 92 | "q")) |
93 | MHD_PANIC (_ ( | 93 | MHD_PANIC (_ ( |
94 | "Failed to signal quiesce via inter-thread communication channel")); | 94 | "Failed to signal quiesce via inter-thread communication channel.\n")); |
95 | } | 95 | } |
96 | } | 96 | } |
97 | daemon->was_quiesced = true; | 97 | daemon->was_quiesced = true; |
@@ -104,7 +104,7 @@ MHD_daemon_quiesce (struct MHD_Daemon *daemon) | |||
104 | EPOLL_CTL_DEL, | 104 | EPOLL_CTL_DEL, |
105 | listen_socket, | 105 | listen_socket, |
106 | NULL)) | 106 | NULL)) |
107 | MHD_PANIC ("Failed to remove listen FD from epoll set\n"); | 107 | MHD_PANIC ("Failed to remove listen FD from epoll set.\n"); |
108 | daemon->listen_socket_in_epoll = false; | 108 | daemon->listen_socket_in_epoll = false; |
109 | } | 109 | } |
110 | #endif | 110 | #endif |
@@ -114,7 +114,7 @@ MHD_daemon_quiesce (struct MHD_Daemon *daemon) | |||
114 | (! MHD_itc_activate_ (daemon->itc, | 114 | (! MHD_itc_activate_ (daemon->itc, |
115 | "q")) ) | 115 | "q")) ) |
116 | MHD_PANIC (_ ( | 116 | MHD_PANIC (_ ( |
117 | "Failed to signal quiesce via inter-thread communication channel")); | 117 | "Failed to signal quiesce via inter-thread communication channel.\n")); |
118 | 118 | ||
119 | /* FIXME: we might want some bi-directional communication here | 119 | /* FIXME: we might want some bi-directional communication here |
120 | (in both the thread-pool and single-thread case!) | 120 | (in both the thread-pool and single-thread case!) |
diff --git a/src/lib/daemon_select.c b/src/lib/daemon_select.c index be8c247c..0f32b6b8 100644 --- a/src/lib/daemon_select.c +++ b/src/lib/daemon_select.c | |||
@@ -531,7 +531,7 @@ MHD_daemon_upgrade_connection_with_select_ (struct MHD_Connection *con) | |||
531 | #ifdef HAVE_MESSAGES | 531 | #ifdef HAVE_MESSAGES |
532 | MHD_DLOG (con->daemon, | 532 | MHD_DLOG (con->daemon, |
533 | MHD_SC_SOCKET_OUTSIDE_OF_FDSET_RANGE, | 533 | MHD_SC_SOCKET_OUTSIDE_OF_FDSET_RANGE, |
534 | _ ("Error preparing select\n")); | 534 | _ ("Error preparing select.\n")); |
535 | #endif | 535 | #endif |
536 | break; | 536 | break; |
537 | } | 537 | } |
@@ -695,7 +695,7 @@ MHD_daemon_select_ (struct MHD_Daemon *daemon, | |||
695 | #ifdef HAVE_MESSAGES | 695 | #ifdef HAVE_MESSAGES |
696 | MHD_DLOG (daemon, | 696 | MHD_DLOG (daemon, |
697 | sc, | 697 | sc, |
698 | _ ("Could not obtain daemon fdsets")); | 698 | _ ("Could not obtain daemon fdsets.\n")); |
699 | #endif | 699 | #endif |
700 | } | 700 | } |
701 | } | 701 | } |
@@ -712,7 +712,7 @@ MHD_daemon_select_ (struct MHD_Daemon *daemon, | |||
712 | #ifdef HAVE_MESSAGES | 712 | #ifdef HAVE_MESSAGES |
713 | MHD_DLOG (daemon, | 713 | MHD_DLOG (daemon, |
714 | MHD_SC_SOCKET_OUTSIDE_OF_FDSET_RANGE, | 714 | MHD_SC_SOCKET_OUTSIDE_OF_FDSET_RANGE, |
715 | _ ("Could not add listen socket to fdset")); | 715 | _ ("Could not add listen socket to fdset.\n")); |
716 | #endif | 716 | #endif |
717 | return MHD_SC_SOCKET_OUTSIDE_OF_FDSET_RANGE; | 717 | return MHD_SC_SOCKET_OUTSIDE_OF_FDSET_RANGE; |
718 | } | 718 | } |
@@ -743,7 +743,7 @@ MHD_daemon_select_ (struct MHD_Daemon *daemon, | |||
743 | MHD_DLOG (daemon, | 743 | MHD_DLOG (daemon, |
744 | sc, | 744 | sc, |
745 | _ ( | 745 | _ ( |
746 | "Could not add control inter-thread communication channel FD to fdset")); | 746 | "Could not add control inter-thread communication channel FD to fdset.\n")); |
747 | #endif | 747 | #endif |
748 | #if defined(MHD_WINSOCK_SOCKETS) | 748 | #if defined(MHD_WINSOCK_SOCKETS) |
749 | } | 749 | } |
diff --git a/src/lib/daemon_start.c b/src/lib/daemon_start.c index 0a1b052e..5704b034 100644 --- a/src/lib/daemon_start.c +++ b/src/lib/daemon_start.c | |||
@@ -99,7 +99,7 @@ configure_listen_reuse (struct MHD_Daemon *daemon) | |||
99 | MHD_DLOG (daemon, | 99 | MHD_DLOG (daemon, |
100 | MHD_SC_LISTEN_ADDRESS_REUSE_ENABLE_NOT_SUPPORTED, | 100 | MHD_SC_LISTEN_ADDRESS_REUSE_ENABLE_NOT_SUPPORTED, |
101 | _ ( | 101 | _ ( |
102 | "Cannot allow listening address reuse: SO_REUSEPORT not defined\n")); | 102 | "Cannot allow listening address reuse: SO_REUSEPORT not defined.\n")); |
103 | #endif | 103 | #endif |
104 | return MHD_SC_LISTEN_ADDRESS_REUSE_ENABLE_NOT_SUPPORTED; | 104 | return MHD_SC_LISTEN_ADDRESS_REUSE_ENABLE_NOT_SUPPORTED; |
105 | #endif /* !MHD_WINSOCK_SOCKETS && !SO_REUSEPORT */ | 105 | #endif /* !MHD_WINSOCK_SOCKETS && !SO_REUSEPORT */ |
@@ -138,7 +138,7 @@ configure_listen_reuse (struct MHD_Daemon *daemon) | |||
138 | MHD_DLOG (daemon, | 138 | MHD_DLOG (daemon, |
139 | MHD_SC_LISTEN_ADDRESS_REUSE_DISABLE_NOT_SUPPORTED, | 139 | MHD_SC_LISTEN_ADDRESS_REUSE_DISABLE_NOT_SUPPORTED, |
140 | _ ( | 140 | _ ( |
141 | "Cannot disallow listening address reuse: SO_EXCLUSIVEADDRUSE not defined\n")); | 141 | "Cannot disallow listening address reuse: SO_EXCLUSIVEADDRUSE not defined.\n")); |
142 | #endif | 142 | #endif |
143 | return MHD_SC_LISTEN_ADDRESS_REUSE_DISABLE_NOT_SUPPORTED; | 143 | return MHD_SC_LISTEN_ADDRESS_REUSE_DISABLE_NOT_SUPPORTED; |
144 | #endif /* MHD_WINSOCK_SOCKETS */ | 144 | #endif /* MHD_WINSOCK_SOCKETS */ |
@@ -221,7 +221,7 @@ open_listen_socket (struct MHD_Daemon *daemon) | |||
221 | #ifdef HAVE_MESSAGES | 221 | #ifdef HAVE_MESSAGES |
222 | MHD_DLOG (daemon, | 222 | MHD_DLOG (daemon, |
223 | MHD_SC_IPV6_NOT_SUPPORTED_BY_BUILD, | 223 | MHD_SC_IPV6_NOT_SUPPORTED_BY_BUILD, |
224 | _ ("IPv6 not supported by this build\n")); | 224 | _ ("IPv6 not supported by this build.\n")); |
225 | #endif | 225 | #endif |
226 | return MHD_SC_IPV6_NOT_SUPPORTED_BY_BUILD; | 226 | return MHD_SC_IPV6_NOT_SUPPORTED_BY_BUILD; |
227 | #endif | 227 | #endif |
@@ -281,7 +281,7 @@ try_open_listen_socket: | |||
281 | MHD_DLOG (daemon, | 281 | MHD_DLOG (daemon, |
282 | MHD_SC_LISTEN_DUAL_STACK_CONFIGURATION_NOT_SUPPORTED, | 282 | MHD_SC_LISTEN_DUAL_STACK_CONFIGURATION_NOT_SUPPORTED, |
283 | _ ( | 283 | _ ( |
284 | "Cannot explicitly setup dual stack behavior on this platform\n")); | 284 | "Cannot explicitly setup dual stack behavior on this platform.\n")); |
285 | #endif | 285 | #endif |
286 | #endif | 286 | #endif |
287 | } | 287 | } |
@@ -452,7 +452,7 @@ get_listen_port_number (struct MHD_Daemon *daemon) | |||
452 | MHD_DLOG (daemon, | 452 | MHD_DLOG (daemon, |
453 | MHD_SC_LISTEN_PORT_INTROSPECTION_FAILURE, | 453 | MHD_SC_LISTEN_PORT_INTROSPECTION_FAILURE, |
454 | _ ( | 454 | _ ( |
455 | "Failed to get listen port number (`struct sockaddr_storage` too small!?)\n")); | 455 | "Failed to get listen port number (`struct sockaddr_storage` too small!?).\n")); |
456 | #endif /* HAVE_MESSAGES */ | 456 | #endif /* HAVE_MESSAGES */ |
457 | return; | 457 | return; |
458 | } | 458 | } |
@@ -626,7 +626,7 @@ MHD_polling_thread (void *cls) | |||
626 | switch (daemon->event_loop_syscall) | 626 | switch (daemon->event_loop_syscall) |
627 | { | 627 | { |
628 | case MHD_ELS_AUTO: | 628 | case MHD_ELS_AUTO: |
629 | MHD_PANIC ("MHD_ELS_AUTO should have been mapped to preferred style"); | 629 | MHD_PANIC ("MHD_ELS_AUTO should have been mapped to preferred style.\n"); |
630 | break; | 630 | break; |
631 | case MHD_ELS_SELECT: | 631 | case MHD_ELS_SELECT: |
632 | MHD_daemon_select_ (daemon, | 632 | MHD_daemon_select_ (daemon, |
@@ -637,7 +637,7 @@ MHD_polling_thread (void *cls) | |||
637 | MHD_daemon_poll_ (daemon, | 637 | MHD_daemon_poll_ (daemon, |
638 | MHD_YES); | 638 | MHD_YES); |
639 | #else | 639 | #else |
640 | MHD_PANIC ("MHD_ELS_POLL not supported, should have failed earlier"); | 640 | MHD_PANIC ("MHD_ELS_POLL not supported, should have failed earlier.\n"); |
641 | #endif | 641 | #endif |
642 | break; | 642 | break; |
643 | case MHD_ELS_EPOLL: | 643 | case MHD_ELS_EPOLL: |
@@ -645,7 +645,7 @@ MHD_polling_thread (void *cls) | |||
645 | MHD_daemon_epoll_ (daemon, | 645 | MHD_daemon_epoll_ (daemon, |
646 | MHD_YES); | 646 | MHD_YES); |
647 | #else | 647 | #else |
648 | MHD_PANIC ("MHD_ELS_EPOLL not supported, should have failed earlier"); | 648 | MHD_PANIC ("MHD_ELS_EPOLL not supported, should have failed earlier.\n"); |
649 | #endif | 649 | #endif |
650 | break; | 650 | break; |
651 | } | 651 | } |
@@ -731,7 +731,7 @@ setup_thread_pool (struct MHD_Daemon *daemon) | |||
731 | MHD_DLOG (daemon, | 731 | MHD_DLOG (daemon, |
732 | MHD_SC_ITC_DESCRIPTOR_TOO_LARGE, | 732 | MHD_SC_ITC_DESCRIPTOR_TOO_LARGE, |
733 | _ ( | 733 | _ ( |
734 | "File descriptor for inter-thread communication channel exceeds maximum value\n")); | 734 | "File descriptor for inter-thread communication channel exceeds maximum value.\n")); |
735 | #endif | 735 | #endif |
736 | MHD_itc_destroy_chk_ (d->itc); | 736 | MHD_itc_destroy_chk_ (d->itc); |
737 | sc = MHD_SC_ITC_DESCRIPTOR_TOO_LARGE; | 737 | sc = MHD_SC_ITC_DESCRIPTOR_TOO_LARGE; |
@@ -755,7 +755,7 @@ setup_thread_pool (struct MHD_Daemon *daemon) | |||
755 | #ifdef HAVE_MESSAGES | 755 | #ifdef HAVE_MESSAGES |
756 | MHD_DLOG (daemon, | 756 | MHD_DLOG (daemon, |
757 | MHD_SC_THREAD_POOL_CREATE_MUTEX_FAILURE, | 757 | MHD_SC_THREAD_POOL_CREATE_MUTEX_FAILURE, |
758 | _ ("MHD failed to initialize cleanup connection mutex\n")); | 758 | _ ("MHD failed to initialize cleanup connection mutex.\n")); |
759 | #endif | 759 | #endif |
760 | if (! daemon->disable_itc) | 760 | if (! daemon->disable_itc) |
761 | MHD_itc_destroy_chk_ (d->itc); | 761 | MHD_itc_destroy_chk_ (d->itc); |
@@ -879,7 +879,7 @@ MHD_daemon_start (struct MHD_Daemon *daemon) | |||
879 | MHD_DLOG (daemon, | 879 | MHD_DLOG (daemon, |
880 | MHD_SC_ITC_DESCRIPTOR_TOO_LARGE, | 880 | MHD_SC_ITC_DESCRIPTOR_TOO_LARGE, |
881 | _ ( | 881 | _ ( |
882 | "File descriptor for inter-thread communication channel exceeds maximum value\n")); | 882 | "File descriptor for inter-thread communication channel exceeds maximum value.\n")); |
883 | #endif | 883 | #endif |
884 | return MHD_SC_ITC_DESCRIPTOR_TOO_LARGE; | 884 | return MHD_SC_ITC_DESCRIPTOR_TOO_LARGE; |
885 | } | 885 | } |
diff --git a/src/lib/init.c b/src/lib/init.c index 4b844d4b..2bdc91bd 100644 --- a/src/lib/init.c +++ b/src/lib/init.c | |||
@@ -95,11 +95,11 @@ MHD_init (void) | |||
95 | #if defined(_WIN32) && ! defined(__CYGWIN__) | 95 | #if defined(_WIN32) && ! defined(__CYGWIN__) |
96 | if (0 != WSAStartup (MAKEWORD (2, 2), | 96 | if (0 != WSAStartup (MAKEWORD (2, 2), |
97 | &wsd)) | 97 | &wsd)) |
98 | MHD_PANIC (_ ("Failed to initialize winsock\n")); | 98 | MHD_PANIC (_ ("Failed to initialize winsock.\n")); |
99 | mhd_winsock_inited_ = 1; | 99 | mhd_winsock_inited_ = 1; |
100 | if ( (2 != LOBYTE (wsd.wVersion)) && | 100 | if ( (2 != LOBYTE (wsd.wVersion)) && |
101 | (2 != HIBYTE (wsd.wVersion)) ) | 101 | (2 != HIBYTE (wsd.wVersion)) ) |
102 | MHD_PANIC (_ ("Winsock version 2.2 is not available\n")); | 102 | MHD_PANIC (_ ("Winsock version 2.2 is not available.\n")); |
103 | #endif | 103 | #endif |
104 | MHD_monotonic_sec_counter_init (); | 104 | MHD_monotonic_sec_counter_init (); |
105 | #ifdef HAVE_FREEBSD_SENDFILE | 105 | #ifdef HAVE_FREEBSD_SENDFILE |
diff --git a/src/lib/request_resume.c b/src/lib/request_resume.c index be513f53..52dc2377 100644 --- a/src/lib/request_resume.c +++ b/src/lib/request_resume.c | |||
@@ -59,7 +59,7 @@ MHD_request_resume (struct MHD_Request *request) | |||
59 | MHD_DLOG (daemon, | 59 | MHD_DLOG (daemon, |
60 | MHD_SC_ITC_USE_FAILED, | 60 | MHD_SC_ITC_USE_FAILED, |
61 | _ ( | 61 | _ ( |
62 | "Failed to signal resume via inter-thread communication channel.")); | 62 | "Failed to signal resume via inter-thread communication channel.\n")); |
63 | #endif | 63 | #endif |
64 | } | 64 | } |
65 | } | 65 | } |
@@ -144,7 +144,7 @@ MHD_resume_suspended_connections_ (struct MHD_Daemon *daemon) | |||
144 | if (MHD_ELS_EPOLL == daemon->event_loop_syscall) | 144 | if (MHD_ELS_EPOLL == daemon->event_loop_syscall) |
145 | { | 145 | { |
146 | if (0 != (pos->epoll_state & MHD_EPOLL_STATE_IN_EREADY_EDLL)) | 146 | if (0 != (pos->epoll_state & MHD_EPOLL_STATE_IN_EREADY_EDLL)) |
147 | MHD_PANIC ("Resumed connection was already in EREADY set\n"); | 147 | MHD_PANIC ("Resumed connection was already in EREADY set.\n"); |
148 | /* we always mark resumed connections as ready, as we | 148 | /* we always mark resumed connections as ready, as we |
149 | might have missed the edge poll event during suspension */ | 149 | might have missed the edge poll event during suspension */ |
150 | EDLL_insert (daemon->eready_head, | 150 | EDLL_insert (daemon->eready_head, |
@@ -190,7 +190,7 @@ MHD_resume_suspended_connections_ (struct MHD_Daemon *daemon) | |||
190 | MHD_DLOG (daemon, | 190 | MHD_DLOG (daemon, |
191 | MHD_SC_ITC_USE_FAILED, | 191 | MHD_SC_ITC_USE_FAILED, |
192 | _ ( | 192 | _ ( |
193 | "Failed to signal resume of connection via inter-thread communication channel.")); | 193 | "Failed to signal resume of connection via inter-thread communication channel.\n")); |
194 | #endif | 194 | #endif |
195 | } | 195 | } |
196 | } | 196 | } |
diff --git a/src/lib/upgrade_process.c b/src/lib/upgrade_process.c index 6b0ccf45..af71ca32 100644 --- a/src/lib/upgrade_process.c +++ b/src/lib/upgrade_process.c | |||
@@ -76,7 +76,7 @@ MHD_upgrade_response_handle_process_ (struct MHD_UpgradeResponseHandle *urh) | |||
76 | _ ( | 76 | _ ( |
77 | "Failed to forward to application " | 77 | "Failed to forward to application " |
78 | MHD_UNSIGNED_LONG_LONG_PRINTF \ | 78 | MHD_UNSIGNED_LONG_LONG_PRINTF \ |
79 | " bytes of data received from remote side: application shut down socket\n"), | 79 | " bytes of data received from remote side: application shut down socket.\n"), |
80 | (MHD_UNSIGNED_LONG_LONG) urh->in_buffer_used); | 80 | (MHD_UNSIGNED_LONG_LONG) urh->in_buffer_used); |
81 | #endif | 81 | #endif |
82 | 82 | ||
@@ -376,7 +376,7 @@ MHD_upgrade_response_handle_process_ (struct MHD_UpgradeResponseHandle *urh) | |||
376 | _ ( | 376 | _ ( |
377 | "Failed to forward to remote client " | 377 | "Failed to forward to remote client " |
378 | MHD_UNSIGNED_LONG_LONG_PRINTF \ | 378 | MHD_UNSIGNED_LONG_LONG_PRINTF \ |
379 | " bytes of data received from application: daemon shut down\n"), | 379 | " bytes of data received from application: daemon shut down.\n"), |
380 | (MHD_UNSIGNED_LONG_LONG) urh->out_buffer_used); | 380 | (MHD_UNSIGNED_LONG_LONG) urh->out_buffer_used); |
381 | #endif | 381 | #endif |
382 | /* Discard any data unsent to remote. */ | 382 | /* Discard any data unsent to remote. */ |