forked from quic-go/quic-go
don't count retransmission as sent bytes for connection flow control
This commit is contained in:
committed by
Lucas Clemente
parent
8a9d70488a
commit
b38d4b37fe
@@ -148,8 +148,9 @@ func (q *streamFrameQueue) Pop(maxLength protocol.ByteCount) (*frames.StreamFram
|
||||
|
||||
q.byteLen -= frame.DataLen()
|
||||
|
||||
// TODO: don't add retransmission to connection-level flow control
|
||||
q.flowControlManager.AddBytesSent(streamID, frame.DataLen())
|
||||
if !isPrioFrame {
|
||||
q.flowControlManager.AddBytesSent(streamID, frame.DataLen())
|
||||
}
|
||||
|
||||
q.len--
|
||||
return frame, nil
|
||||
|
||||
Reference in New Issue
Block a user