mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-05 05:07:36 +03:00
delete non-forward-secure retransmissions when the handshake completes
This commit is contained in:
parent
5cd5d5dae9
commit
b0ab718c7a
4 changed files with 37 additions and 32 deletions
|
@ -1000,22 +1000,6 @@ var _ = Describe("Session", func() {
|
|||
Expect(sent).To(BeTrue())
|
||||
Expect(mconn.written).To(HaveLen(1))
|
||||
})
|
||||
|
||||
It("doesn't retransmit handshake packets when the handshake is complete", func() {
|
||||
sess.handshakeComplete = true
|
||||
sf := &wire.StreamFrame{StreamID: 1, Data: []byte("foobar")}
|
||||
sph.EXPECT().DequeuePacketForRetransmission().Return(
|
||||
&ackhandler.Packet{
|
||||
Frames: []wire.Frame{sf},
|
||||
EncryptionLevel: protocol.EncryptionSecure,
|
||||
})
|
||||
sph.EXPECT().DequeuePacketForRetransmission()
|
||||
sph.EXPECT().ShouldSendRetransmittablePacket()
|
||||
sent, err := sess.sendPacket()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
Expect(sent).To(BeFalse())
|
||||
Expect(mconn.written).To(BeEmpty())
|
||||
})
|
||||
})
|
||||
|
||||
Context("for packets after the handshake", func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue