fix the issue that ussl will close socket twice
This commit is contained in:
parent
54093fbda9
commit
782cd89b27
1
deps/ussl-hook/ussl-loop.c
vendored
1
deps/ussl-hook/ussl-loop.c
vendored
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user