There was an error fetching the commit references. Please try again later.
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.
Showing
- examples/network.h 1 addition, 0 deletionsexamples/network.h
- examples/server.cc 2 additions, 0 deletionsexamples/server.cc
- lib/includes/ngtcp2/ngtcp2.h 5 additions, 1 deletionlib/includes/ngtcp2/ngtcp2.h
- lib/ngtcp2_conn.c 16 additions, 15 deletionslib/ngtcp2_conn.c
- lib/ngtcp2_err.c 2 additions, 0 deletionslib/ngtcp2_err.c
- tests/ngtcp2_conn_test.c 4 additions, 4 deletionstests/ngtcp2_conn_test.c
Please register or sign in to comment