libmicrohttpd2

HTTP server C library (MHD 2.x, alpha)
Log | Files | Refs | README | LICENSE

commit 64fc7f0f6ea2de79a39e36bc3172f172e7c9326b
parent 98d093b14ecf0e91fad7804a85151397f1e2b039
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date:   Wed, 10 Dec 2025 21:23:32 +0100

Fixed TLS connection hung after handshake when data arrived early

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

diff --git a/src/mhd2/conn_tls_check.c b/src/mhd2/conn_tls_check.c @@ -103,6 +103,8 @@ mhd_conn_tls_check (struct MHD_Connection *restrict c) & (~(enum mhd_SocketNetState) mhd_SOCKET_NET_STATE_RECV_READY)); } + if (mhd_tls_conn_has_data_in (c->tls)) + c->tls_has_data_in = mhd_TLS_BUF_HAS_DATA_IN; /* TLS is connected now, set event loop state based on HTTP protocol. Some early application-level data could be processing in this round. */ mhd_conn_event_loop_state_update (c);