handle IETF draft style Version Negotiation Packets

This commit is contained in:
Marten Seemann
2017-10-29 16:44:03 +07:00
parent 515babb4bd
commit fc3087fab3
2 changed files with 17 additions and 13 deletions

View File

@@ -246,6 +246,7 @@ var _ = Describe("Client", func() {
testErr := errors.New("late handshake error")
packetConn.dataToRead = acceptClientVersionPacket(cl.connectionID)
go func() {
defer GinkgoRecover()
_, dialErr := Dial(packetConn, addr, "quic.clemente.io:1337", nil, config)
Expect(dialErr).To(MatchError(testErr))
close(done)