1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-05-30 15:59:08 -04:00

correctly calculate len of sending window

This commit is contained in:
v2ray
2016-07-01 15:54:04 +02:00
parent 5714ae3935
commit 829355e6bf
2 changed files with 12 additions and 1 deletions

View File

@@ -61,7 +61,7 @@ func (this *SendingWindow) Remove(idx uint32) {
seg.Release()
this.data[pos] = nil
if pos == this.start {
if this.len == 1 {
if this.start == this.last {
this.len = 0
this.start = 0
this.last = 0