limit available window to 3x of received bytes before address validation

This commit is contained in:
Marten Seemann
2020-04-23 13:34:31 +07:00
parent 98233f6743
commit 60a918a108
9 changed files with 186 additions and 13 deletions

View File

@@ -64,6 +64,7 @@ func (h *receivedPacketHandler) ReceivedPacket(
rcvTime time.Time,
shouldInstigateAck bool,
) error {
h.sentPackets.ReceivedPacket(encLevel)
switch encLevel {
case protocol.EncryptionInitial:
h.initialPackets.ReceivedPacket(pn, rcvTime, shouldInstigateAck)