libmicrohttpd

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

commit f6e4e13e92a2831787d90ceec3e716935a471bb4
parent 6fb386ec44348f5ff36afd5fd6d9cf1174d92532
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun, 26 Nov 2023 19:37:19 +0300

"Upgraded" TLS connections: fixed sending of large messages

In epoll mode with internal threads if large enough (>16KB) sending
buffer is used, "write ready" status could be cleared when it should
not.
Note: to have >16KB buffer for sending, connection pool memory should
be >32KB + request header size (+ various pointers size).

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

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -1656,8 +1656,6 @@ process_urh (struct MHD_UpgradeResponseHandle *urh) memmove (urh->out_buffer, &urh->out_buffer[res], next_out_buffer_used); - if (data_size > (size_t) res) - urh->app.celi &= ~((enum MHD_EpollState) MHD_EPOLL_STATE_WRITE_READY); } urh->out_buffer_used = next_out_buffer_used; }