mirror of https://github.com/v2ray/v2ray-core
correctly set tti
parent
6ec9032a54
commit
41225f8c12
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue