mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-06 13:47:35 +03:00
implement parsing of headers with different connection ID lengths
This commit is contained in:
parent
b26eb2705f
commit
0bd7e744ff
16 changed files with 97 additions and 90 deletions
|
@ -1823,7 +1823,7 @@ var _ = Describe("Client Session", func() {
|
|||
sess.queueControlFrame(&wire.PingFrame{})
|
||||
var packet []byte
|
||||
Eventually(mconn.written).Should(Receive(&packet))
|
||||
hdr, err := wire.ParseInvariantHeader(bytes.NewReader(packet))
|
||||
hdr, err := wire.ParseInvariantHeader(bytes.NewReader(packet), 0)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(hdr.DestConnectionID).To(Equal(protocol.ConnectionID{1, 3, 3, 7, 1, 3, 3, 7}))
|
||||
// make sure the go routine returns
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue