[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 04/09: test_upgrade: added initial support for timeout d
From: |
gnunet |
Subject: |
[libmicrohttpd] 04/09: test_upgrade: added initial support for timeout detection |
Date: |
Fri, 24 Nov 2023 19:53:59 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 80ecc6d37cfe0ba56566b63cd3f798cb2dc931a4
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Oct 23 20:50:55 2023 +0300
test_upgrade: added initial support for timeout detection
---
src/microhttpd/test_upgrade.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c
index c9ba09b0..d62ef7fd 100644
--- a/src/microhttpd/test_upgrade.c
+++ b/src/microhttpd/test_upgrade.c
@@ -161,6 +161,9 @@ _testErrorLog_func (const char *errDesc, const char
*funcName, int lineNum)
#endif /* ! MHD_HAVE_MHD_FUNC_ */
+/* Could be increased to facilitate debugging */
+static unsigned int test_timeout = 5U;
+
static int verbose = 0;
static uint16_t global_port;
@@ -1333,6 +1336,7 @@ test_upgrade (unsigned int flags,
MHD_OPTION_NOTIFY_CONNECTION, ¬ify_connection_cb,
NULL,
MHD_OPTION_THREAD_POOL_SIZE, pool,
+ MHD_OPTION_CONNECTION_TIMEOUT, test_timeout,
MHD_OPTION_END);
#ifdef HTTPS_SUPPORT
else
@@ -1349,6 +1353,7 @@ test_upgrade (unsigned int flags,
MHD_OPTION_HTTPS_MEM_KEY, srv_signed_key_pem,
MHD_OPTION_HTTPS_MEM_CERT, srv_signed_cert_pem,
MHD_OPTION_THREAD_POOL_SIZE, pool,
+ MHD_OPTION_CONNECTION_TIMEOUT, test_timeout,
MHD_OPTION_END);
#endif /* HTTPS_SUPPORT */
if (NULL == d)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (a19df909 -> 38c06b6a), gnunet, 2023/11/24
- [libmicrohttpd] 01/09: mhd_sockets: fixed error code for W32, gnunet, 2023/11/24
- [libmicrohttpd] 03/09: test_upgrade: used sized send and receive, removed VLA, other improvements, gnunet, 2023/11/24
- [libmicrohttpd] 02/09: test_upgrade{,_large}: minor improvements, gnunet, 2023/11/24
- [libmicrohttpd] 09/09: test_upgrade: implemented timeouts for all socket operations, gnunet, 2023/11/24
- [libmicrohttpd] 05/09: test_upgrade: set TCP_NODELAY unconditionally on used sockets, gnunet, 2023/11/24
- [libmicrohttpd] 06/09: test_upgrade: added timeout detection on send/recv operations, gnunet, 2023/11/24
- [libmicrohttpd] 04/09: test_upgrade: added initial support for timeout detection,
gnunet <=
- [libmicrohttpd] 07/09: test_upgrade: fixed timeout value for external select, gnunet, 2023/11/24
- [libmicrohttpd] 08/09: test_upgrade: merged similar code paths, gnunet, 2023/11/24