From 31fbb62d0f5aadc5cfee19978c6dca7f1a0c7dd4 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Tue, 29 Nov 2016 17:12:09 +0100 Subject: [PATCH] add back flush timeout --- transport/internet/kcp/receiving.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/internet/kcp/receiving.go b/transport/internet/kcp/receiving.go index b1417884..e30f3e39 100644 --- a/transport/internet/kcp/receiving.go +++ b/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 }