forked from quic-go/quic-go
add a buffer pool test for wrong-sized puts
This commit is contained in:
@@ -14,7 +14,6 @@ func getPacketBuffer() []byte {
|
||||
|
||||
func putPacketBuffer(buf []byte) {
|
||||
if cap(buf) != int(protocol.MaxPacketSize) {
|
||||
println(buf)
|
||||
panic("putPacketBuffer called with packet of wrong size!")
|
||||
}
|
||||
bufferPool.Put(buf[:0])
|
||||
|
||||
Reference in New Issue
Block a user