mirror of https://github.com/v2ray/v2ray-core
shrink_buf
parent
84889117e9
commit
ab2cef1c09
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue