diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-08-27 18:14:06 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-08-27 18:14:06 +0300 |
commit | 8395ad601ed8b39c0d0c33f40c7bacff29ca03f9 (patch) | |
tree | 44e733db0a5128a3b943fdd0e6c078c069c44a1a /src/microhttpd/daemon.c | |
parent | 5437bfdf9c8b8dd3faa55471eeb655ba908c96c3 (diff) | |
download | libmicrohttpd-8395ad601ed8b39c0d0c33f40c7bacff29ca03f9.tar.gz libmicrohttpd-8395ad601ed8b39c0d0c33f40c7bacff29ca03f9.zip |
Fixed support for custom connection timeouts in Thread-Per-Connection mode
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index c0278246..d4fd0d6a 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -1893,7 +1893,7 @@ thread_main_handle_connection (void *data) | |||
1893 | while ( (! daemon->shutdown) && | 1893 | while ( (! daemon->shutdown) && |
1894 | (MHD_CONNECTION_CLOSED != con->state) ) | 1894 | (MHD_CONNECTION_CLOSED != con->state) ) |
1895 | { | 1895 | { |
1896 | const time_t timeout = daemon->connection_timeout; | 1896 | const time_t timeout = con->connection_timeout; |
1897 | #ifdef UPGRADE_SUPPORT | 1897 | #ifdef UPGRADE_SUPPORT |
1898 | struct MHD_UpgradeResponseHandle *const urh = con->urh; | 1898 | struct MHD_UpgradeResponseHandle *const urh = con->urh; |
1899 | #else /* ! UPGRADE_SUPPORT */ | 1899 | #else /* ! UPGRADE_SUPPORT */ |