mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-06 05:37:36 +03:00
parent
e2d5d7e3a6
commit
a8764d923e
4 changed files with 38 additions and 38 deletions
|
@ -160,7 +160,7 @@ var _ = Describe("Packet packer", func() {
|
|||
It("packs many control frames into 1 packets", func() {
|
||||
f := &frames.AckFrameLegacy{LargestObserved: 1}
|
||||
b := &bytes.Buffer{}
|
||||
f.Write(b, protocol.Version32)
|
||||
f.Write(b, protocol.VersionWhatever)
|
||||
maxFramesPerPacket := int(protocol.MaxFrameAndPublicHeaderSize-publicHeaderLen) / b.Len()
|
||||
var controlFrames []frames.Frame
|
||||
for i := 0; i < maxFramesPerPacket; i++ {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue