From d37c01905ced1f143f5d4a82f287fe3d52759a7a Mon Sep 17 00:00:00 2001 From: v2ray Date: Sat, 25 Jun 2016 23:18:05 +0200 Subject: [PATCH] remove unnecessary conversion --- transport/internet/kcp/connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/internet/kcp/connection.go b/transport/internet/kcp/connection.go index da3502020..beb2c06eb 100644 --- a/transport/internet/kcp/connection.go +++ b/transport/internet/kcp/connection.go @@ -82,7 +82,7 @@ func NewConnection(conv uint32, writerCloser io.WriteCloser, local *net.UDPAddr, conn.kcp = NewKCP(conv, mtu, effectiveConfig.GetSendingWindowSize(), effectiveConfig.GetReceivingWindowSize(), conn.output) conn.kcp.NoDelay(effectiveConfig.Tti, 2, effectiveConfig.Congestion) conn.kcp.current = conn.Elapsed() - conn.writeBufferSize = uint32(effectiveConfig.WriteBuffer) / effectiveConfig.Mtu + conn.writeBufferSize = effectiveConfig.WriteBuffer / effectiveConfig.Mtu go conn.updateTask()