fix the issue that ussl will close socket twice

This commit is contained in:
obdev 2024-02-22 06:46:11 +00:00 committed by ob-robot
parent 54093fbda9
commit 782cd89b27

View File

@ -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);
}