[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 70/156: Upgraded TLS: fixed inefficient communication
From: |
gnunet |
Subject: |
[libmicrohttpd] 70/156: Upgraded TLS: fixed inefficient communication |
Date: |
Sun, 28 May 2023 17:52:03 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to tag v0.9.77
in repository libmicrohttpd.
commit a93ca180b209df0b4c8bd57f077b984ca0b877c2
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Mar 30 18:09:36 2023 +0200
Upgraded TLS: fixed inefficient communication
---
src/microhttpd/response.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index f51fa686..41665754 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -1738,13 +1738,26 @@ MHD_response_execute_upgrade_ (struct MHD_Response
*response,
free (urh);
return MHD_NO;
}
+ pool = connection->pool;
+ if (0 != connection->write_buffer_size)
+ {
+ mhd_assert (NULL != connection->write_buffer);
+ /* All data should be sent already */
+ mhd_assert (connection->write_buffer_send_offset == \
+ connection->write_buffer_append_offset);
+ (void) MHD_pool_reallocate (pool, connection->write_buffer,
+ connection->write_buffer_size, 0);
+ connection->write_buffer_append_offset = 0;
+ connection->write_buffer_send_offset = 0;
+ connection->write_buffer_size = 0;
+ }
+ connection->write_buffer = NULL;
urh->app.socket = sv[0];
urh->app.urh = urh;
urh->app.celi = MHD_EPOLL_STATE_UNREADY;
urh->mhd.socket = sv[1];
urh->mhd.urh = urh;
urh->mhd.celi = MHD_EPOLL_STATE_UNREADY;
- pool = connection->pool;
avail = MHD_pool_get_free (pool);
if (avail < RESERVE_EBUF_SIZE)
{
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 64/156: configure: fixed potential compiler warnings, added usage of cache vars, (continued)
- [libmicrohttpd] 64/156: configure: fixed potential compiler warnings, added usage of cache vars, gnunet, 2023/05/28
- [libmicrohttpd] 68/156: mhd_shutdown_socket_trigger.m4: fixed preprocessor conditional, gnunet, 2023/05/28
- [libmicrohttpd] 72/156: HTTPS test: fixed unmatched function declaration, gnunet, 2023/05/28
- [libmicrohttpd] 73/156: Disabled badly broken TLS tests, gnunet, 2023/05/28
- [libmicrohttpd] 84/156: autoinit_funcs.h: improved formatting, gnunet, 2023/05/28
- [libmicrohttpd] 85/156: Fixed many macros, gnunet, 2023/05/28
- [libmicrohttpd] 79/156: Updated libtool fixes, gnunet, 2023/05/28
- [libmicrohttpd] 90/156: autoinit_funcs.h: unified English spelling (prefer GB over US), gnunet, 2023/05/28
- [libmicrohttpd] 94/156: test_postform: updated to support the new libcurl API, gnunet, 2023/05/28
- [libmicrohttpd] 96/156: autoinit_funcs.h: fixed compiler warning, gnunet, 2023/05/28
- [libmicrohttpd] 70/156: Upgraded TLS: fixed inefficient communication,
gnunet <=
- [libmicrohttpd] 74/156: connection.c: fixed processing of folded headers, gnunet, 2023/05/28
- [libmicrohttpd] 81/156: contrib/make-dist.sh: added new helper script, gnunet, 2023/05/28
- [libmicrohttpd] 99/156: configure: fixed compiler warnings, gnunet, 2023/05/28
- [libmicrohttpd] 106/156: test_postprocessor_md: fixed build in C89 mode, gnunet, 2023/05/28
- [libmicrohttpd] 117/156: examples/sessions.c: improved safety, gnunet, 2023/05/28
- [libmicrohttpd] 82/156: Updated POTFILES.in, gnunet, 2023/05/28
- [libmicrohttpd] 76/156: Added test with folded header placed last, gnunet, 2023/05/28
- [libmicrohttpd] 107/156: test_client_put_stop: fixed test on Darwin, gnunet, 2023/05/28
- [libmicrohttpd] 103/156: configure: renamed macro, gnunet, 2023/05/28
- [libmicrohttpd] 112/156: Added specific headers detection and include, gnunet, 2023/05/28