You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
x/net/http2 doesn't use the http.Server context–as it isn't provided to the TLSNextProto handler–instead creating it's own in serverConnBaseContext. This code currently lacks the BaseContext & ConnContext calls.
Also while I'm here, the two panics introduced by CL 167681 (here and here) should have a http: prefix.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
CL 167681 (for #30694) introduced the
BaseContext
&ConnContext
fields onhttp.Server
, but they were never wired up inx/net/http2
.The following is a slight modification of the
TestServerContexts
test inserve_test.go
that uses HTTP2:Then
go test
:What did you expect to see?
What did you see instead?
x/net/http2
doesn't use thehttp.Server
context–as it isn't provided to theTLSNextProto
handler–instead creating it's own inserverConnBaseContext
. This code currently lacks theBaseContext
&ConnContext
calls.Also while I'm here, the two panics introduced by CL 167681 (here and here) should have a
http:
prefix./cc @bradfitz
The text was updated successfully, but these errors were encountered: