diff --git a/transport/internet/kcp/connection.go b/transport/internet/kcp/connection.go index 30bb455e..23666bf0 100644 --- a/transport/internet/kcp/connection.go +++ b/transport/internet/kcp/connection.go @@ -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()