We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The docs on Server.ServeConn say that "The opts parameter is optional. If nil, default values are used. "
However ServeConn calls serverConnBaseContext(c, opts), which calls opts.context(), which doesn't check its receiver for nil https://github.com/golang/net/blob/74dc4d7220e7acc4e100824340f3e66577424772/http2/server.go#L325
ServeConn
serverConnBaseContext(c, opts)
opts.context()
nil
func (o *ServeConnOpts) context() context.Context { if o.Context != nil { ...
It looks like it should do o != nil as its sister functions do.
o != nil
The text was updated successfully, but these errors were encountered:
Change https://golang.org/cl/191857 mentions this issue: http2: correct ServeConnOpts.context's nil receiver check
http2: correct ServeConnOpts.context's nil receiver check
Sorry, something went wrong.
golang/net@ba9fcec
6ee8c83
Fixes golang/go#33839 Change-Id: Ic1a9e42afc8efda7ec2d39e705efe41474237d82 Reviewed-on: https://go-review.googlesource.com/c/net/+/191857 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
No branches or pull requests
The docs on Server.ServeConn say that "The opts parameter is optional. If nil, default values are used. "
However
ServeConn
callsserverConnBaseContext(c, opts)
, which callsopts.context()
, which doesn't check its receiver fornil
https://github.com/golang/net/blob/74dc4d7220e7acc4e100824340f3e66577424772/http2/server.go#L325
It looks like it should do
o != nil
as its sister functions do.The text was updated successfully, but these errors were encountered: