mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
don't retransmit 0-RTT packets when 0-RTT is rejected
This commit is contained in:
parent
8b63039664
commit
97ab014479
2 changed files with 6 additions and 8 deletions
|
@ -1078,8 +1078,7 @@ var _ = Describe("SentPacketHandler", func() {
|
|||
Expect(handler.handshakePackets).To(BeNil())
|
||||
})
|
||||
|
||||
// TODO(#2067): invalidate 0-RTT data when 0-RTT is rejected
|
||||
It("retransmits 0-RTT packets when 0-RTT keys are dropped", func() {
|
||||
It("doesn't retransmit 0-RTT packets when 0-RTT keys are dropped", func() {
|
||||
for i := protocol.PacketNumber(0); i < 6; i++ {
|
||||
if i == 3 {
|
||||
continue
|
||||
|
@ -1094,7 +1093,7 @@ var _ = Describe("SentPacketHandler", func() {
|
|||
}
|
||||
Expect(handler.bytesInFlight).To(Equal(protocol.ByteCount(11)))
|
||||
handler.DropPackets(protocol.Encryption0RTT)
|
||||
Expect(lostPackets).To(Equal([]protocol.PacketNumber{0, 1, 2, 4, 5}))
|
||||
Expect(lostPackets).To(BeEmpty())
|
||||
Expect(handler.bytesInFlight).To(Equal(protocol.ByteCount(6)))
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue