libmicrohttpd

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

commit 79df07303a611cc949cb1d52adf1a41e60b381f2
parent 387ec260ee523dca78e1b5e92858a2935e8bf44a
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu, 22 Apr 2021 11:59:24 +0300

upgraded connection: ensure normal buffering

Ensure that TCP_CORK and TCP_NODELAY are disabled for
upgraded sockets.

Diffstat:
Msrc/microhttpd/response.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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) ) {