forked from quic-go/quic-go
http3: use the connection, not the stream context, on the server side (#4510)
This commit is contained in:
@@ -82,7 +82,13 @@ func (c *SingleDestinationRoundTripper) Start() Connection {
|
||||
func (c *SingleDestinationRoundTripper) init() {
|
||||
c.decoder = qpack.NewDecoder(func(hf qpack.HeaderField) {})
|
||||
c.requestWriter = newRequestWriter()
|
||||
c.hconn = newConnection(c.Connection, c.EnableDatagrams, protocol.PerspectiveClient, c.Logger)
|
||||
c.hconn = newConnection(
|
||||
c.Connection.Context(),
|
||||
c.Connection,
|
||||
c.EnableDatagrams,
|
||||
protocol.PerspectiveClient,
|
||||
c.Logger,
|
||||
)
|
||||
// send the SETTINGs frame, using 0-RTT data, if possible
|
||||
go func() {
|
||||
if err := c.setupConn(c.hconn); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user