only allow a single retry

This commit is contained in:
Marten Seemann
2018-10-24 23:07:03 +07:00
parent cfc8a904d5
commit a7f94d89b6
6 changed files with 33 additions and 37 deletions

View File

@@ -200,6 +200,7 @@ var _ = Describe("Handshake RTT tests", func() {
serverConfig.AcceptCookie = func(_ net.Addr, _ *quic.Cookie) bool {
return false
}
clientConfig.HandshakeTimeout = 500 * time.Millisecond
runServerAndProxy()
_, err := quic.DialAddr(
proxy.LocalAddr().String(),
@@ -207,7 +208,7 @@ var _ = Describe("Handshake RTT tests", func() {
clientConfig,
)
Expect(err).To(HaveOccurred())
Expect(err.(qerr.ErrorCode)).To(Equal(qerr.CryptoTooManyRejects))
Expect(err.(*qerr.QuicError).ErrorCode).To(Equal(qerr.HandshakeTimeout))
})
})
})