mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
added logic to handle handshake failure
This commit is contained in:
parent
692ab9f325
commit
abadb54272
|
@ -277,6 +277,13 @@ namespace llarp::quic
|
|||
return;
|
||||
}
|
||||
|
||||
if (code == NGTCP2_ERR_HANDSHAKE_TIMEOUT)
|
||||
{
|
||||
log::warning(logcat, "Connection {} handshake timed out, closing now", conn.base_cid);
|
||||
delete_conn(conn.base_cid);
|
||||
return;
|
||||
}
|
||||
|
||||
ngtcp2_connection_close_error err;
|
||||
ngtcp2_connection_close_error_set_transport_error_liberr(
|
||||
&err,
|
||||
|
|
Loading…
Reference in a new issue