diff options
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index d1ec032a..e94ad64c 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -2799,7 +2799,18 @@ MHD_resume_connection (struct MHD_Connection *connection) | |||
2799 | MHD_PANIC (_("Cannot resume connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n")); | 2799 | MHD_PANIC (_("Cannot resume connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n")); |
2800 | MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex); | 2800 | MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex); |
2801 | connection->resuming = true; | 2801 | connection->resuming = true; |
2802 | connection->just_resumed = true; | ||
2802 | daemon->resuming = true; | 2803 | daemon->resuming = true; |
2804 | if (connection->connection_timeout == daemon->connection_timeout) | ||
2805 | { | ||
2806 | /* move to the end... */ | ||
2807 | XDLL_remove (daemon->normal_timeout_head, | ||
2808 | daemon->normal_timeout_tail, | ||
2809 | connection); | ||
2810 | XDLL_insert (daemon->normal_timeout_head, | ||
2811 | daemon->normal_timeout_tail, | ||
2812 | connection); | ||
2813 | } | ||
2803 | MHD_mutex_unlock_chk_ (&daemon->cleanup_connection_mutex); | 2814 | MHD_mutex_unlock_chk_ (&daemon->cleanup_connection_mutex); |
2804 | if ( (MHD_ITC_IS_VALID_(daemon->itc)) && | 2815 | if ( (MHD_ITC_IS_VALID_(daemon->itc)) && |
2805 | (! MHD_itc_activate_ (daemon->itc, "r")) ) | 2816 | (! MHD_itc_activate_ (daemon->itc, "r")) ) |