Explorar el Código

add back flush timeout

Darien Raymond hace 9 años
padre
commit
31fbb62d0f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      transport/internet/kcp/receiving.go

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

@@ -113,7 +113,7 @@ func (v *AckList) Flush(current uint32, rto uint32) {
 		}
 		seg.PutNumber(v.numbers[i])
 		seg.PutTimestamp(v.timestamps[i])
-		timeout := rto / 4
+		timeout := rto / 2
 		if timeout < 20 {
 			timeout = 20
 		}