1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-02 23:47:07 -05:00

remove unnecessary conversion

This commit is contained in:
v2ray 2016-06-25 23:18:05 +02:00
parent 0812d7f9be
commit d37c01905c
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -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()