diff options
Diffstat (limited to 'src/lib/connection_update_last_activity.c')
-rw-r--r-- | src/lib/connection_update_last_activity.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/lib/connection_update_last_activity.c b/src/lib/connection_update_last_activity.c index 7253dc83..741da681 100644 --- a/src/lib/connection_update_last_activity.c +++ b/src/lib/connection_update_last_activity.c | |||
@@ -43,7 +43,7 @@ MHD_connection_update_last_activity_ (struct MHD_Connection *connection) | |||
43 | if (connection->suspended) | 43 | if (connection->suspended) |
44 | return; /* no activity on suspended connections */ | 44 | return; /* no activity on suspended connections */ |
45 | 45 | ||
46 | connection->last_activity = MHD_monotonic_sec_counter(); | 46 | connection->last_activity = MHD_monotonic_sec_counter (); |
47 | if (MHD_TM_THREAD_PER_CONNECTION == daemon->threading_mode) | 47 | if (MHD_TM_THREAD_PER_CONNECTION == daemon->threading_mode) |
48 | return; /* each connection has personal timeout */ | 48 | return; /* each connection has personal timeout */ |
49 | 49 | ||
@@ -53,13 +53,12 @@ MHD_connection_update_last_activity_ (struct MHD_Connection *connection) | |||
53 | MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex); | 53 | MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex); |
54 | /* move connection to head of timeout list (by remove + add operation) */ | 54 | /* move connection to head of timeout list (by remove + add operation) */ |
55 | XDLL_remove (daemon->normal_timeout_head, | 55 | XDLL_remove (daemon->normal_timeout_head, |
56 | daemon->normal_timeout_tail, | 56 | daemon->normal_timeout_tail, |
57 | connection); | 57 | connection); |
58 | XDLL_insert (daemon->normal_timeout_head, | 58 | XDLL_insert (daemon->normal_timeout_head, |
59 | daemon->normal_timeout_tail, | 59 | daemon->normal_timeout_tail, |
60 | connection); | 60 | connection); |
61 | MHD_mutex_unlock_chk_ (&daemon->cleanup_connection_mutex); | 61 | MHD_mutex_unlock_chk_ (&daemon->cleanup_connection_mutex); |
62 | } | 62 | } |
63 | 63 | ||
64 | /* end of connection_update_last_activity.c */ | 64 | /* end of connection_update_last_activity.c */ |
65 | |||