소스 검색

allow control window larger than sending window

v2ray 9 년 전
부모
커밋
9c3ebc0453
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      transport/internet/kcp/sending.go

+ 2 - 2
transport/internet/kcp/sending.go

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