qlog when packets are dropped due to unsupported QUIC version

This commit is contained in:
Marten Seemann
2020-04-10 14:39:02 +07:00
parent 899e1694d7
commit f58eb47383
5 changed files with 24 additions and 7 deletions

View File

@@ -213,7 +213,7 @@ var _ = Describe("Header Parsing", func() {
'f', 'o', 'o', 'b', 'a', 'r', // unspecified bytes
}
hdr, _, rest, err := ParsePacket(data, 0)
Expect(err).ToNot(HaveOccurred())
Expect(err).To(MatchError(ErrUnsupportedVersion))
Expect(hdr.IsLongHeader).To(BeTrue())
Expect(hdr.Version).To(Equal(protocol.VersionNumber(0xdeadbeef)))
Expect(hdr.DestConnectionID).To(Equal(protocol.ConnectionID{0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8}))