mirror of
https://github.com/hikaricai/p2p_tun.git
synced 2024-04-21 12:41:48 +00:00
merge from kcp-go
This commit is contained in:
+1
-1
@@ -798,7 +798,7 @@ func (kcp *KCP) flush(ackOnly bool) uint32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// get the nearest rto
|
// 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
|
minrto = rto
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -116,7 +116,7 @@ func main() {
|
|||||||
},
|
},
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "mode",
|
Name: "mode",
|
||||||
Value: "fast2",
|
Value: "fast",
|
||||||
Usage: "profiles: fast3, fast2, fast, normal, manual",
|
Usage: "profiles: fast3, fast2, fast, normal, manual",
|
||||||
},
|
},
|
||||||
cli.IntFlag{
|
cli.IntFlag{
|
||||||
|
|||||||
+1
-1
@@ -66,7 +66,7 @@ func main() {
|
|||||||
},
|
},
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "mode",
|
Name: "mode",
|
||||||
Value: "fast2",
|
Value: "fast",
|
||||||
Usage: "profiles: fast3, fast2, fast, normal, manual",
|
Usage: "profiles: fast3, fast2, fast, normal, manual",
|
||||||
},
|
},
|
||||||
cli.IntFlag{
|
cli.IntFlag{
|
||||||
|
|||||||
Reference in New Issue
Block a user