diff options
Diffstat (limited to 'src/lib/connection_options.c')
-rw-r--r-- | src/lib/connection_options.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/connection_options.c b/src/lib/connection_options.c index 118da122..cbcbf0bb 100644 --- a/src/lib/connection_options.c +++ b/src/lib/connection_options.c | |||
@@ -50,7 +50,8 @@ MHD_connection_set_timeout (struct MHD_Connection *connection, | |||
50 | MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex); | 50 | MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex); |
51 | if (! connection->suspended) | 51 | if (! connection->suspended) |
52 | { | 52 | { |
53 | if (connection->connection_timeout == daemon->connection_timeout) | 53 | if (connection->connection_timeout == |
54 | daemon->connection_default_timeout) | ||
54 | XDLL_remove (daemon->normal_timeout_head, | 55 | XDLL_remove (daemon->normal_timeout_head, |
55 | daemon->normal_timeout_tail, | 56 | daemon->normal_timeout_tail, |
56 | connection); | 57 | connection); |
@@ -62,7 +63,8 @@ MHD_connection_set_timeout (struct MHD_Connection *connection, | |||
62 | connection->connection_timeout = (time_t) timeout_s; | 63 | connection->connection_timeout = (time_t) timeout_s; |
63 | if (! connection->suspended) | 64 | if (! connection->suspended) |
64 | { | 65 | { |
65 | if (connection->connection_timeout == daemon->connection_timeout) | 66 | if (connection->connection_timeout == |
67 | daemon->connection_default_timeout) | ||
66 | XDLL_insert (daemon->normal_timeout_head, | 68 | XDLL_insert (daemon->normal_timeout_head, |
67 | daemon->normal_timeout_tail, | 69 | daemon->normal_timeout_tail, |
68 | connection); | 70 | connection); |
@@ -97,7 +99,8 @@ MHD_update_last_activity_ (struct MHD_Connection *connection) | |||
97 | if (MHD_TM_THREAD_PER_CONNECTION == daemon->threading_model) | 99 | if (MHD_TM_THREAD_PER_CONNECTION == daemon->threading_model) |
98 | return; /* each connection has personal timeout */ | 100 | return; /* each connection has personal timeout */ |
99 | 101 | ||
100 | if (connection->connection_timeout != daemon->connection_timeout) | 102 | if (connection->connection_timeout != |
103 | daemon->connection_default_timeout) | ||
101 | return; /* custom timeout, no need to move it in "normal" DLL */ | 104 | return; /* custom timeout, no need to move it in "normal" DLL */ |
102 | 105 | ||
103 | MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex); | 106 | MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex); |