1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-25 00:45:24 +00:00

correctly set tti

This commit is contained in:
V2Ray Dev 2016-06-20 22:27:25 +02:00
parent 6ec9032a54
commit 41225f8c12
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -80,7 +80,7 @@ func NewConnection(conv uint32, writerCloser io.WriteCloser, local *net.UDPAddr,
mtu := uint32(effectiveConfig.Mtu - block.HeaderSize() - headerSize)
conn.kcp = NewKCP(conv, mtu, conn.output)
conn.kcp.WndSize(effectiveConfig.GetSendingWindowSize(), effectiveConfig.GetReceivingWindowSize())
conn.kcp.NoDelay(1, 20, 2, effectiveConfig.Congestion)
conn.kcp.NoDelay(1, effectiveConfig.Tti, 2, effectiveConfig.Congestion)
conn.kcp.current = conn.Elapsed()
go conn.updateTask()