allow control window larger than sending window

pull/215/head v1.18
v2ray 9 years ago
parent 968fffcffb
commit 9c3ebc0453
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -341,8 +341,8 @@ func (this *SendingWorker) OnPacketLoss(lost bool) {
if this.controlWindow < 4 { if this.controlWindow < 4 {
this.controlWindow = 4 this.controlWindow = 4
} }
if this.controlWindow > this.windowSize { if this.controlWindow > 2*this.windowSize {
this.controlWindow = this.windowSize this.controlWindow = 2 * this.windowSize
} }
} }

Loading…
Cancel
Save