mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 04:37:36 +03:00
introduce a buffer pool for large buffers (20k)
This commit is contained in:
parent
bef0f3d31a
commit
7d8db149b6
5 changed files with 35 additions and 15 deletions
|
@ -216,7 +216,7 @@ var _ = Describe("OOB Conn Test", func() {
|
|||
Expect(ms).To(HaveLen(batchSize))
|
||||
for i := 0; i < numMsgRead; i++ {
|
||||
Expect(ms[i].Buffers).To(HaveLen(1))
|
||||
Expect(ms[i].Buffers[0]).To(HaveLen(int(protocol.MaxPacketBufferSize)))
|
||||
Expect(ms[i].Buffers[0]).To(HaveLen(protocol.MaxPacketBufferSize))
|
||||
data := []byte(fmt.Sprintf("message %d", counter))
|
||||
counter++
|
||||
ms[i].Buffers[0] = data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue