From ab2cef1c09a3aa8ad8aebd4eb1cce2f463511fc0 Mon Sep 17 00:00:00 2001 From: v2ray Date: Sun, 3 Jul 2016 00:57:28 +0200 Subject: [PATCH] shrink_buf --- transport/internet/kcp/kcp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/transport/internet/kcp/kcp.go b/transport/internet/kcp/kcp.go index 2b85d475..4c57e8ef 100644 --- a/transport/internet/kcp/kcp.go +++ b/transport/internet/kcp/kcp.go @@ -216,6 +216,7 @@ func (kcp *KCP) Input(data []byte) int { kcp.rmt_wnd = seg.ReceivingWindow } kcp.HandleReceivingNext(seg.ReceivingNext) + kcp.shrink_buf() for i := 0; i < int(seg.Count); i++ { ts := seg.TimestampList[i] sn := seg.NumberList[i]