mirror of https://github.com/v2ray/v2ray-core
correctly release segments
parent
73afe9a001
commit
05ed05b9a0
|
@ -414,6 +414,7 @@ func (this *Connection) Input(data []byte) int {
|
|||
}
|
||||
this.sendingWorker.ProcessReceivingNext(seg.ReceivinNext)
|
||||
this.receivingWorker.ProcessSendingNext(seg.SendingNext)
|
||||
seg.Release()
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
|
|
@ -292,6 +292,8 @@ func (this *SendingWorker) ProcessAck(number uint32) {
|
|||
}
|
||||
|
||||
func (this *SendingWorker) ProcessSegment(current uint32, seg *AckSegment) {
|
||||
defer seg.Release()
|
||||
|
||||
this.Lock()
|
||||
defer this.Unlock()
|
||||
|
||||
|
|
Loading…
Reference in New Issue