Skip to content

Commit

Permalink
make parse_ack recycle data immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Jan 3, 2019
1 parent 9b1a605 commit 2b63a96
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 @@ -387,6 +387,7 @@ func (kcp *KCP) parse_ack(sn uint32) {
seg := &kcp.snd_buf[k]
if sn == seg.sn {
seg.acked = 1
kcp.delSegment(seg)
break
}
if _itimediff(sn, seg.sn) < 0 {
Expand Down

0 comments on commit 2b63a96

Please sign in to comment.