[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 19/156: thread-per-connection: do not cache connection t
From: |
gnunet |
Subject: |
[libmicrohttpd] 19/156: thread-per-connection: do not cache connection timeout |
Date: |
Sun, 28 May 2023 17:51:12 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to tag v0.9.77
in repository libmicrohttpd.
commit 2571d0df26a221e78649c38a654e4766e6734c51
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed Apr 27 14:20:16 2022 +0300
thread-per-connection: do not cache connection timeout
The timeout value could be updated by application
---
src/microhttpd/daemon.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 3d6c6a84..f1229be0 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -1947,7 +1947,6 @@ thread_main_handle_connection (void *data)
while ( (! daemon->shutdown) &&
(MHD_CONNECTION_CLOSED != con->state) )
{
- uint64_t timeout = con->connection_timeout_ms;
#ifdef UPGRADE_SUPPORT
struct MHD_UpgradeResponseHandle *const urh = con->urh;
#else /* ! UPGRADE_SUPPORT */
@@ -2041,7 +2040,7 @@ thread_main_handle_connection (void *data)
tvp = &tv;
}
if ( (NULL == tvp) &&
- (timeout > 0) )
+ (con->connection_timeout_ms > 0) )
{
const uint64_t mseconds_left = connection_get_wait (con);
#if (SIZEOF_UINT64_T - 2) >= SIZEOF_STRUCT_TIMEVAL_TV_SEC
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 10/156: memorypool: fixed: unpoison memory for ASAN before destroying pool, (continued)
- [libmicrohttpd] 10/156: memorypool: fixed: unpoison memory for ASAN before destroying pool, gnunet, 2023/05/28
- [libmicrohttpd] 18/156: Response from callback: do allow negative return amounts, except predefined values, gnunet, 2023/05/28
- [libmicrohttpd] 13/156: test_https_sni: use certificates with SAN fields, gnunet, 2023/05/28
- [libmicrohttpd] 16/156: test_https_sni: use CA certificate, gnunet, 2023/05/28
- [libmicrohttpd] 20/156: Fixed return type for get_system_fdsetsize_value (), gnunet, 2023/05/28
- [libmicrohttpd] 15/156: Updated test TLS certificate in test and examples, gnunet, 2023/05/28
- [libmicrohttpd] 36/156: testzzuf: fixed missing CPPFLAGS from configure, gnunet, 2023/05/28
- [libmicrohttpd] 22/156: I'm trying to use libmicrohttpd on a platform where fcntl(fd, O_NONBLOCK) doesn't work for sockets. This shouldn't be a problem, as far as I understand, except in epoll mode, which I'm not using, because epoll() isn't available either., gnunet, 2023/05/28
- [libmicrohttpd] 14/156: Makefile: fixed *.crt files names for dist target, gnunet, 2023/05/28
- [libmicrohttpd] 17/156: src/examples: fixed printf format specifiers, gnunet, 2023/05/28
- [libmicrohttpd] 19/156: thread-per-connection: do not cache connection timeout,
gnunet <=
- [libmicrohttpd] 25/156: Fixed 'int' instead of 'MHD_Result', gnunet, 2023/05/28
- [libmicrohttpd] 24/156: daemon.c: fixed possible uninitialized value, gnunet, 2023/05/28
- [libmicrohttpd] 28/156: websocket_threaded_example: minor fixes, gnunet, 2023/05/28
- [libmicrohttpd] 37/156: testcurl: fixed checking response headers as null-terminated string, gnunet, 2023/05/28
- [libmicrohttpd] 34/156: daemon: fixed delayed notification callback in thread-per-connection mode, gnunet, 2023/05/28
- [libmicrohttpd] 38/156: test_upgrade{,_large}: fixed HTTP/1.1 compatibility, gnunet, 2023/05/28
- [libmicrohttpd] 42/156: configure: try to detect whether eventfd is enabled, gnunet, 2023/05/28
- [libmicrohttpd] 35/156: mhd_assert: use "DEBUG" macro defined by some toolchains, gnunet, 2023/05/28
- [libmicrohttpd] 33/156: mhd_str: fixed compiler warning for compact code, gnunet, 2023/05/28
- [libmicrohttpd] 26/156: Fixed very rare data races when closing upgraded connection, gnunet, 2023/05/28