ackhandler: remove unneeded SetHandshakeConfirmed from SentPacketHandler (#4890)

According to section 4.9.2 of RFC 9001, dropping the Handshake packet
number spaces happens when the handshake is confirmed.
This commit is contained in:
Marten Seemann
2025-01-19 20:59:27 -08:00
committed by GitHub
parent 92dc1970ec
commit 2d2538d790
5 changed files with 3 additions and 52 deletions

View File

@@ -133,7 +133,6 @@ var _ = Describe("SentPacketHandler", func() {
setHandshakeConfirmed := func() {
handler.DropPackets(protocol.EncryptionInitial, time.Now())
handler.DropPackets(protocol.EncryptionHandshake, time.Now())
handler.SetHandshakeConfirmed(time.Now())
}
Context("registering sent packets", func() {