diff --git a/kcp-go/kcp.go b/kcp-go/kcp.go index 0f5aeff..29d0d72 100755 --- a/kcp-go/kcp.go +++ b/kcp-go/kcp.go @@ -798,7 +798,7 @@ func (kcp *KCP) flush(ackOnly bool) uint32 { } // get the nearest rto - if rto := _itimediff(segment.rto, current); rto > 0 && rto < minrto { + if rto := _itimediff(segment.resendts, current); rto > 0 && rto < minrto { minrto = rto } } diff --git a/p2pclient/main.go b/p2pclient/main.go index 8c64f42..0e91b76 100755 --- a/p2pclient/main.go +++ b/p2pclient/main.go @@ -116,7 +116,7 @@ func main() { }, cli.StringFlag{ Name: "mode", - Value: "fast2", + Value: "fast1", Usage: "profiles: fast3, fast2, fast, normal, manual", }, cli.IntFlag{ diff --git a/p2pserver/main.go b/p2pserver/main.go index c928937..6c53b18 100755 --- a/p2pserver/main.go +++ b/p2pserver/main.go @@ -66,7 +66,7 @@ func main() { }, cli.StringFlag{ Name: "mode", - Value: "fast2", + Value: "fast1", Usage: "profiles: fast3, fast2, fast, normal, manual", }, cli.IntFlag{