don't count retransmission as sent bytes for connection flow control

This commit is contained in:
Marten Seemann
2016-06-16 16:05:37 +07:00
committed by Lucas Clemente
parent 8a9d70488a
commit b38d4b37fe
3 changed files with 20 additions and 2 deletions

View File

@@ -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