[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 03/04: upgraded connection: ensure normal buffering
From: |
gnunet |
Subject: |
[libmicrohttpd] 03/04: upgraded connection: ensure normal buffering |
Date: |
Thu, 22 Apr 2021 12:20:05 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 79df07303a611cc949cb1d52adf1a41e60b381f2
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Apr 22 11:59:24 2021 +0300
upgraded connection: ensure normal buffering
Ensure that TCP_CORK and TCP_NODELAY are disabled for
upgraded sockets.
---
src/microhttpd/response.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index ab8a56e8..8c047077 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -1104,6 +1104,8 @@ MHD_response_execute_upgrade_ (struct MHD_Response
*response,
urh->connection = connection;
rbo = connection->read_buffer_offset;
connection->read_buffer_offset = 0;
+ MHD_connection_set_nodelay_state_ (connection, false);
+ MHD_connection_set_cork_state_ (connection, false);
#ifdef HTTPS_SUPPORT
if (0 != (daemon->options & MHD_USE_TLS) )
{
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.