From 782cd89b2790a6cd7fedd781425bfa286b1cfddd Mon Sep 17 00:00:00 2001 From: obdev Date: Thu, 22 Feb 2024 06:46:11 +0000 Subject: [PATCH] fix the issue that ussl will close socket twice --- deps/ussl-hook/ussl-loop.c | 1 + 1 file changed, 1 insertion(+) diff --git a/deps/ussl-hook/ussl-loop.c b/deps/ussl-hook/ussl-loop.c index 181fe97a4..0a020b618 100644 --- a/deps/ussl-hook/ussl-loop.c +++ b/deps/ussl-hook/ussl-loop.c @@ -155,6 +155,7 @@ static void handle_server_timeout_event(acceptfd_sk_t *accept_sk) accept_sk->fd, accept_sk->ep->fd, errno); } close(accept_sk->fd); + accept_sk->fd = -1; acceptfd_fty->destroy(acceptfd_fty, (ussl_sock_t *)accept_sk); }