1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-20 22:45:24 +00:00

correct window calculation

This commit is contained in:
v2ray 2016-06-27 11:18:14 +02:00
parent 2e63b29191
commit 5a5c9b891d
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -550,7 +550,7 @@ func (kcp *KCP) flush() {
// 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 {
cwnd = _imin_(kcp.cwnd, cwnd)
}