mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
parse the packet header before getting the session from the session map
This commit is contained in:
parent
dd722758af
commit
5d4174b2f0
8 changed files with 144 additions and 173 deletions
|
@ -12,7 +12,7 @@ var _ = Describe("Version Negotiation Packets", func() {
|
|||
It("writes for gQUIC", func() {
|
||||
versions := []protocol.VersionNumber{1001, 1003}
|
||||
data := ComposeGQUICVersionNegotiation(0x1337, versions)
|
||||
hdr, err := parsePublicHeader(bytes.NewReader(data), protocol.PerspectiveServer, protocol.VersionUnknown)
|
||||
hdr, err := parsePublicHeader(bytes.NewReader(data), protocol.PerspectiveServer)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(hdr.VersionFlag).To(BeTrue())
|
||||
Expect(hdr.ConnectionID).To(Equal(protocol.ConnectionID(0x1337)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue