forked from quic-go/quic-go
keep track of which packets were sent as retransmissions
When an ACK for a packet that was retransmitted arrives, we don't need to retransmit the retransmission, even if it was lost.
This commit is contained in:
@@ -18,6 +18,11 @@ type Packet struct {
|
||||
|
||||
largestAcked protocol.PacketNumber // if the packet contains an ACK, the LargestAcked value of that ACK
|
||||
sendTime time.Time
|
||||
|
||||
queuedForRetransmission bool
|
||||
retransmittedAs []protocol.PacketNumber
|
||||
isRetransmission bool // we need a separate bool here because 0 is a valid packet number
|
||||
retransmissionOf protocol.PacketNumber
|
||||
}
|
||||
|
||||
// GetFramesForRetransmission gets all the frames for retransmission
|
||||
|
||||
Reference in New Issue
Block a user