forked from quic-go/quic-go
Merge pull request #1343 from lucas-clemente/log-conn-flow-control-ensure-min-increases
log all connection flow control window increases
This commit is contained in:
@@ -78,6 +78,7 @@ func (c *connectionFlowController) GetWindowUpdate() protocol.ByteCount {
|
|||||||
func (c *connectionFlowController) EnsureMinimumWindowSize(inc protocol.ByteCount) {
|
func (c *connectionFlowController) EnsureMinimumWindowSize(inc protocol.ByteCount) {
|
||||||
c.mutex.Lock()
|
c.mutex.Lock()
|
||||||
if inc > c.receiveWindowSize {
|
if inc > c.receiveWindowSize {
|
||||||
|
c.logger.Debugf("Increasing receive flow control window for the connection to %d kB, in response to stream flow control window increase", c.receiveWindowSize/(1<<10))
|
||||||
c.receiveWindowSize = utils.MinByteCount(inc, c.maxReceiveWindowSize)
|
c.receiveWindowSize = utils.MinByteCount(inc, c.maxReceiveWindowSize)
|
||||||
c.startNewAutoTuningEpoch()
|
c.startNewAutoTuningEpoch()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user