[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 01/11: test_client_put_stop: use TCP_NODELAY for client
From: |
gnunet |
Subject: |
[libmicrohttpd] 01/11: test_client_put_stop: use TCP_NODELAY for client |
Date: |
Wed, 24 Nov 2021 19:08:14 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 85dbd8dc522a6dc83d64619d1cdf603ef9461dcc
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Nov 23 17:50:15 2021 +0300
test_client_put_stop: use TCP_NODELAY for client
---
src/microhttpd/test_client_put_stop.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/microhttpd/test_client_put_stop.c
b/src/microhttpd/test_client_put_stop.c
index 7d1c66c0..814e8418 100644
--- a/src/microhttpd/test_client_put_stop.c
+++ b/src/microhttpd/test_client_put_stop.c
@@ -326,6 +326,15 @@ _MHD_dumbClient_create (unsigned int port, const char
*method, const char *url,
else
make_blocking (clnt->sckt);
+ if (1)
+ { /* Always set TCP NODELAY */
+ const MHD_SCKT_OPT_BOOL_ on_val = 1;
+
+ if (0 != setsockopt (clnt->sckt, IPPROTO_TCP, TCP_NODELAY,
+ (const void *) &on_val, sizeof (on_val)))
+ externalErrorExitDesc ("Cannot set TCP_NODELAY option");
+ }
+
clnt->port = port;
if (NULL != method)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 03/11: process_request_body(): removed redundant check, (continued)
- [libmicrohttpd] 03/11: process_request_body(): removed redundant check, gnunet, 2021/11/24
- [libmicrohttpd] 02/11: process_request_body(): replaced 'int' with 'bool', gnunet, 2021/11/24
- [libmicrohttpd] 04/11: process_request_body(): unify checks for chunked upload, gnunet, 2021/11/24
- [libmicrohttpd] 06/11: process_request_body(): removed one more unneeded check, gnunet, 2021/11/24
- [libmicrohttpd] 07/11: process_request_body(): fixed: do not skip chunk closure when too few data available, gnunet, 2021/11/24
- [libmicrohttpd] 08/11: process_request_body(): do not process when no more data is available, gnunet, 2021/11/24
- [libmicrohttpd] 05/11: process_request_body(): removed unneeded check, gnunet, 2021/11/24
- [libmicrohttpd] 11/11: process_request_body(): added assert, gnunet, 2021/11/24
- [libmicrohttpd] 09/11: process_request_body(): minor improvement of code readability, gnunet, 2021/11/24
- [libmicrohttpd] 10/11: process_request_body(): fixed: removed wrong special handling of the termination chunk, gnunet, 2021/11/24
- [libmicrohttpd] 01/11: test_client_put_stop: use TCP_NODELAY for client,
gnunet <=