quinn-proto: drop Initials silently when saturated#2683
Conversation
|
Don't we already have |
|
A user app would need to get |
|
Perhaps silently dropping unrecognized packets when |
Seems reasonable to me. |
3933584 to
3b8d770
Compare
Made it default/only-behaviour under saturation |
When the `max_incoming` queue is full (or CIDs are exhausted), quinn replied to each Initial with CONNECTION_REFUSED. Building that reply derives the packet's initial keys, which is computationally expensive. A flood of Initials then forces the endpoint's packet-processing task to do per-Initial crypto work, leaving it less time for legitimate packets and degrading already-established connections.
3b8d770 to
9408ac2
Compare
When the
max_incomingqueue is full (or CIDs are exhausted), quinn replied to each Initial with CONNECTION_REFUSED. Building that reply derives the packet's initial keys, which is computationally expensive.A flood of Initials then forces the endpoint's packet-processing task to do per-Initial crypto work, leaving it less time for legitimate packets and degrading already-established connections.
So drop Initials silently when saturated.