From 01dbd76834ece3b2ff78b6b0964415ad14953877 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Fri, 5 Jun 2026 00:17:17 +0300 Subject: [PATCH] 1 --- lib/tcp_io.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tcp_io.c b/lib/tcp_io.c index 5a14f822..5d02e4fc 100644 --- a/lib/tcp_io.c +++ b/lib/tcp_io.c @@ -164,6 +164,7 @@ static void read_cb(socket_t sock, void* arg) { tc->fin_remote = 1; DEBUG_INFO(DEBUG_CATEGORY_SOCKET, "tcp_io: FIN fd=%d", (int)tc->sock); uasync_set_socket_read(tc->ua, tc->socket_id, 0); + queue_waiter_cancel(tc->read_queue, &tc->read_waiter); if (tc->read_queue->count == 0) { if (tc->on_fin) tc->on_fin(tc, tc->arg); } else {