mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 09:36:34 -05:00
fix buffer pool in quic
This commit is contained in:
parent
ec89d42feb
commit
163fe2523e
3
vendor/github.com/lucas-clemente/quic-go/buffer_pool.go
generated
vendored
3
vendor/github.com/lucas-clemente/quic-go/buffer_pool.go
generated
vendored
@ -36,7 +36,8 @@ func (b *packetBuffer) Release() {
|
||||
}
|
||||
// only put the packetBuffer back if it's not used any more
|
||||
if b.refCount == 0 {
|
||||
bufferPool.Put(b.Slice)
|
||||
buffer := b.Slice[0:cap(b.Slice)]
|
||||
bufferPool.Put(buffer)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user