forked from quic-go/quic-go
qtls: only attempt 0-RTT resumption for 0-RTT enabled session tickets (#4183)
This commit is contained in:
@@ -40,8 +40,9 @@ var _ = Describe("Client Session Cache", func() {
|
||||
RootCAs: testdata.GetRootCA(),
|
||||
ClientSessionCache: &clientSessionCache{
|
||||
wrapped: tls.NewLRUClientSessionCache(10),
|
||||
getData: func() []byte { return []byte("session") },
|
||||
setData: func(data []byte) bool {
|
||||
getData: func(bool) []byte { return []byte("session") },
|
||||
setData: func(data []byte, earlyData bool) bool {
|
||||
Expect(earlyData).To(BeFalse()) // running on top of TCP, we can only test non-0-RTT here
|
||||
restored <- data
|
||||
return true
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user