Skip to content

Commit

Permalink
add a comment for sliding window
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Nov 11, 2016
1 parent ffaad6e commit 3f35e45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,7 @@ func (kcp *KCP) flush() {
cwnd = _imin_(kcp.cwnd, cwnd)
}

// sliding window, controlled by snd_nxt && sna_una+cwnd
count := 0
for k := range kcp.snd_queue {
if _itimediff(kcp.snd_nxt, kcp.snd_una+cwnd) >= 0 {
Expand Down

0 comments on commit 3f35e45

Please sign in to comment.