shrink_buf

pull/215/head
v2ray 2016-07-03 00:57:28 +02:00
parent 84889117e9
commit ab2cef1c09
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 1 additions and 0 deletions

View File

@ -216,6 +216,7 @@ func (kcp *KCP) Input(data []byte) int {
kcp.rmt_wnd = seg.ReceivingWindow
}
kcp.HandleReceivingNext(seg.ReceivingNext)
kcp.shrink_buf()
for i := 0; i < int(seg.Count); i++ {
ts := seg.TimestampList[i]
sn := seg.NumberList[i]