mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-05 13:17:36 +03:00
send a NEW_TOKEN from after completing the handshake (as a server)
This commit is contained in:
parent
7c7bcede6c
commit
34543848f0
9 changed files with 97 additions and 29 deletions
|
@ -77,8 +77,9 @@ var _ = Describe("Session", func() {
|
|||
|
||||
sessionRunner = NewMockSessionRunner(mockCtrl)
|
||||
mconn = newMockConnection()
|
||||
tokenGenerator, err := handshake.NewTokenGenerator()
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
var pSess Session
|
||||
var err error
|
||||
pSess, err = newSession(
|
||||
mconn,
|
||||
sessionRunner,
|
||||
|
@ -88,6 +89,7 @@ var _ = Describe("Session", func() {
|
|||
populateServerConfig(&Config{}),
|
||||
nil, // tls.Config
|
||||
&handshake.TransportParameters{},
|
||||
tokenGenerator,
|
||||
utils.DefaultLogger,
|
||||
protocol.VersionTLS,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue