Skip to content
Snippets Groups Projects
Commit 2ec42740 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa
Browse files

Drop connection if the very first Initial packet is corrupted

This commit adds special handling for the very first Initial packet
which is corrupted and discarded.  If server receives such packet, it
has to drop connection silently without sending any CONNECTION_CLOSE.
Then valid packet might come later.  Keeping connection state is
harmful because corrupted packet has wrong SCID, which drops later
valid packet because mismatched SCID.  New error code
NGTCP2_ERR_DROP_CONN is added which tells server application to drop
connection silently.
parent 23c4ab0b
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment