diff options
Diffstat (limited to 'src/lib/connection_add.c')
-rw-r--r-- | src/lib/connection_add.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/connection_add.c b/src/lib/connection_add.c index edca88f9..eb5984e3 100644 --- a/src/lib/connection_add.c +++ b/src/lib/connection_add.c | |||
@@ -23,6 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | #include "internal.h" | 24 | #include "internal.h" |
25 | #include "connection_add.h" | 25 | #include "connection_add.h" |
26 | #include "connection_update_last_activity.h" | ||
26 | #include "daemon_ip_limit.h" | 27 | #include "daemon_ip_limit.h" |
27 | #include "daemon_select.h" | 28 | #include "daemon_select.h" |
28 | #include "daemon_poll.h" | 29 | #include "daemon_poll.h" |
@@ -187,7 +188,7 @@ thread_main_handle_connection (void *data) | |||
187 | 188 | ||
188 | if (was_suspended) | 189 | if (was_suspended) |
189 | { | 190 | { |
190 | MHD_update_last_activity_ (con); /* Reset timeout timer. */ | 191 | MHD_connection_update_last_activity_ (con); /* Reset timeout timer. */ |
191 | /* Process response queued during suspend and update states. */ | 192 | /* Process response queued during suspend and update states. */ |
192 | MHD_connection_handle_idle (con); | 193 | MHD_connection_handle_idle (con); |
193 | was_suspended = false; | 194 | was_suspended = false; |
@@ -394,14 +395,11 @@ thread_main_handle_connection (void *data) | |||
394 | { | 395 | { |
395 | /* Normal HTTP processing is finished, | 396 | /* Normal HTTP processing is finished, |
396 | * notify application. */ | 397 | * notify application. */ |
397 | if ( (NULL != con->request.response->termination_cb) && | 398 | if (NULL != con->request.response->termination_cb) |
398 | (con->request.client_aware) ) | ||
399 | con->request.response->termination_cb | 399 | con->request.response->termination_cb |
400 | (con->request.response->termination_cb_cls, | 400 | (con->request.response->termination_cb_cls, |
401 | MHD_REQUEST_TERMINATED_COMPLETED_OK, | 401 | MHD_REQUEST_TERMINATED_COMPLETED_OK, |
402 | con->request.client_context); | 402 | con->request.client_context); |
403 | con->request.client_aware = false; | ||
404 | |||
405 | thread_main_connection_upgrade (con); | 403 | thread_main_connection_upgrade (con); |
406 | /* MHD_connection_finish_forward_() was called by thread_main_connection_upgrade(). */ | 404 | /* MHD_connection_finish_forward_() was called by thread_main_connection_upgrade(). */ |
407 | 405 | ||