parse the PublicHeader of packets with truncated connection id

fixes #433
This commit is contained in:
Marten Seemann 2017-02-21 20:29:44 +07:00
parent 7a5955f560
commit 84ee9a7a5f
No known key found for this signature in database
GPG key ID: 3603F40B121FCDEA
3 changed files with 26 additions and 14 deletions

View file

@ -162,7 +162,7 @@ var _ = Describe("Client", func() {
var listenErr error
go func() {
defer GinkgoRecover()
_, err = serverConn.Write(bytes.Repeat([]byte{'f'}, 100))
_, err = serverConn.Write(bytes.Repeat([]byte{0xff}, 100))
Expect(err).ToNot(HaveOccurred())
}()