use 0.5-RTT data to open the control stream in the http3 server

This commit is contained in:
Marten Seemann 2020-01-25 18:53:35 +07:00
parent 2bac900862
commit bc25840519
7 changed files with 119 additions and 98 deletions

View file

@ -60,7 +60,7 @@ var _ = Describe("RoundTripper", func() {
var (
rt *RoundTripper
req1 *http.Request
session *mockquic.MockSession
session *mockquic.MockEarlySession
)
BeforeEach(func() {
@ -74,7 +74,7 @@ var _ = Describe("RoundTripper", func() {
origDialAddr := dialAddr
BeforeEach(func() {
session = mockquic.NewMockSession(mockCtrl)
session = mockquic.NewMockEarlySession(mockCtrl)
origDialAddr = dialAddr
dialAddr = func(addr string, tlsConf *tls.Config, config *quic.Config) (quic.Session, error) {
// return an error when trying to open a stream