1
1
Fork 0
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:
dan 2023-03-09 11:49:15 -08:00
parent 692ab9f325
commit abadb54272

View file

@ -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,