diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-04-22 11:59:24 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-04-22 12:11:02 +0300 |
commit | 79df07303a611cc949cb1d52adf1a41e60b381f2 (patch) | |
tree | 7151820181cad4752e9aab70c9eb133050e64dd3 | |
parent | 387ec260ee523dca78e1b5e92858a2935e8bf44a (diff) | |
download | libmicrohttpd-79df07303a611cc949cb1d52adf1a41e60b381f2.tar.gz libmicrohttpd-79df07303a611cc949cb1d52adf1a41e60b381f2.zip |
upgraded connection: ensure normal buffering
Ensure that TCP_CORK and TCP_NODELAY are disabled for
upgraded sockets.
-rw-r--r-- | src/microhttpd/response.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, | |||
1104 | urh->connection = connection; | 1104 | urh->connection = connection; |
1105 | rbo = connection->read_buffer_offset; | 1105 | rbo = connection->read_buffer_offset; |
1106 | connection->read_buffer_offset = 0; | 1106 | connection->read_buffer_offset = 0; |
1107 | MHD_connection_set_nodelay_state_ (connection, false); | ||
1108 | MHD_connection_set_cork_state_ (connection, false); | ||
1107 | #ifdef HTTPS_SUPPORT | 1109 | #ifdef HTTPS_SUPPORT |
1108 | if (0 != (daemon->options & MHD_USE_TLS) ) | 1110 | if (0 != (daemon->options & MHD_USE_TLS) ) |
1109 | { | 1111 | { |