libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 8395ad601ed8b39c0d0c33f40c7bacff29ca03f9
parent 5437bfdf9c8b8dd3faa55471eeb655ba908c96c3
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Fri, 27 Aug 2021 18:14:06 +0300

Fixed support for custom connection timeouts in Thread-Per-Connection mode

Diffstat:
Msrc/microhttpd/daemon.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -1893,7 +1893,7 @@ thread_main_handle_connection (void *data) while ( (! daemon->shutdown) && (MHD_CONNECTION_CLOSED != con->state) ) { - const time_t timeout = daemon->connection_timeout; + const time_t timeout = con->connection_timeout; #ifdef UPGRADE_SUPPORT struct MHD_UpgradeResponseHandle *const urh = con->urh; #else /* ! UPGRADE_SUPPORT */