queue 0-RTT packets for retransmission when 0-RTT is rejected

This commit is contained in:
Marten Seemann 2020-01-23 15:11:05 +07:00
parent bc82887eff
commit 2473eb0895
4 changed files with 46 additions and 7 deletions

View file

@ -91,4 +91,8 @@ var _ = Describe("Received Packet Handler", func() {
Expect(handler.GetAckFrame(protocol.EncryptionHandshake)).To(BeNil())
Expect(handler.GetAckFrame(protocol.Encryption1RTT)).ToNot(BeNil())
})
It("does nothing when droping 0-RTT packets", func() {
handler.DropPackets(protocol.Encryption0RTT)
})
})