Skip to content
New issue

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

x/net/http2: ConnState Unable to track #43585

fsyyft opened this issue Jan 8, 2021 · 2 comments

x/net/http2: ConnState Unable to track #43585

fsyyft opened this issue Jan 8, 2021 · 2 comments


Copy link

@fsyyft fsyyft commented Jan 8, 2021

What version of Go are you using (go version)?

$ go version


Does this issue reproduce with the latest release?


What operating system and processor architecture are you using (go env)?

go env Output
$ go env

What did you do?

What did you expect to see?

net/http package Server struct in the SDK have ConnState func(net.Conn, ConnState), But not exists in the 'Server' struct of 'x/net/http2'

With the h2c feature, when the state variable is converted to http.StateHijacked , I will no longer know the subsequent state of the connection.

I expect to be able to follow the status of this TCP connection until it is closed.

Is there such a function or a flexible solution? Thank you

What did you see instead?

Copy link

@mengzhuo mengzhuo commented Jan 8, 2021

Hi, fsyyft

The Go project doesn't use the issue tracker for questions. See

Copy link

@cagedmantis cagedmantis commented Jan 11, 2021

@mengzhuo is correct. We don't use the issue tracker for questions. Thank you for your interest in Go!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants