Sfoglia il codice sorgente

update roundtripinfo

v2ray 9 anni fa
parent
commit
6ffc24f895
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      transport/internet/kcp/connection.go

+ 1 - 1
transport/internet/kcp/connection.go

@@ -62,7 +62,7 @@ func (this *RoundTripInfo) UpdatePeerRTO(rto uint32, current uint32) {
 	this.Lock()
 	defer this.Unlock()
 
-	if current-this.updatedTimestamp < 5000 {
+	if current-this.updatedTimestamp < 3000 {
 		return
 	}