mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-03 07:56:42 -05:00
correct window calculation
This commit is contained in:
parent
2e63b29191
commit
5a5c9b891d
@ -550,7 +550,7 @@ func (kcp *KCP) flush() {
|
|||||||
|
|
||||||
// calculate window size
|
// calculate window size
|
||||||
|
|
||||||
cwnd := _imin_(kcp.snd_nxt+kcp.snd_wnd, kcp.rmt_wnd)
|
cwnd := _imin_(kcp.snd_una+kcp.snd_wnd, kcp.rmt_wnd)
|
||||||
if kcp.congestionControl {
|
if kcp.congestionControl {
|
||||||
cwnd = _imin_(kcp.cwnd, cwnd)
|
cwnd = _imin_(kcp.cwnd, cwnd)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user