Browse Source

fix buffer pool in quic

pull/1869/head^2
Darien Raymond 6 years ago
parent
commit
163fe2523e
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 3
      vendor/github.com/lucas-clemente/quic-go/buffer_pool.go

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…
Cancel
Save