mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-18 02:16:10 -05:00
correctly release segments
This commit is contained in:
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
Block a user