aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r--src/microhttpd/connection.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index bcc24705..52b67b05 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -523,19 +523,6 @@ MHD_connection_close_ (struct MHD_Connection *connection,
523 &connection->client_context, 523 &connection->client_context,
524 termination_code); 524 termination_code);
525 connection->client_aware = MHD_NO; 525 connection->client_aware = MHD_NO;
526
527 /* if we were at the connection limit before and are in
528 thread-per-connection mode, signal the main thread
529 to resume accepting connections */
530 if ( (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) &&
531 (MHD_ITC_IS_VALID_ (daemon->itc)) &&
532 (! MHD_itc_activate_ (daemon->itc, "c")) )
533 {
534#ifdef HAVE_MESSAGES
535 MHD_DLOG (daemon,
536 _("Failed to signal end of connection via inter-thread communication channel"));
537#endif
538 }
539} 526}
540 527
541 528
@@ -2610,7 +2597,20 @@ cleanup_connection (struct MHD_Connection *connection)
2610 connection->resuming = MHD_NO; 2597 connection->resuming = MHD_NO;
2611 connection->in_idle = MHD_NO; 2598 connection->in_idle = MHD_NO;
2612 if (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) 2599 if (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION))
2613 MHD_mutex_unlock_chk_(&daemon->cleanup_connection_mutex); 2600 {
2601 MHD_mutex_unlock_chk_(&daemon->cleanup_connection_mutex);
2602 /* if we were at the connection limit before and are in
2603 thread-per-connection mode, signal the main thread
2604 to resume accepting connections */
2605 if ( (MHD_ITC_IS_VALID_ (daemon->itc)) &&
2606 (! MHD_itc_activate_ (daemon->itc, "c")) )
2607 {
2608#ifdef HAVE_MESSAGES
2609 MHD_DLOG (daemon,
2610 _("Failed to signal end of connection via inter-thread communication channel"));
2611#endif
2612 }
2613 }
2614} 2614}
2615 2615
2616 2616