From f6e4e13e92a2831787d90ceec3e716935a471bb4 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Sun, 26 Nov 2023 19:37:19 +0300 Subject: [PATCH] "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). --- src/microhttpd/daemon.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 206b4ffe..1dc2a3bd 100644 --- 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; }