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

Use transparent golang http2 transport #849

Merged
merged 4 commits into from Oct 31, 2018

Conversation

lox
Copy link
Contributor

@lox lox commented Oct 30, 2018

We were using a very old version of golang.org/x/net/http2 (circa 2017), as well as configuring http2 support manually. In golang 1.6 and later this is done transparently.

I also noticed that we used the deprecated Transport.Dial vs Transport.DialContext, which needed to be updated before transparent http2 detection was done.

You can see http2 logging with GODEBUG=http2debug=2 go run *.go start --debug

@lox lox requested a review from sj26 October 30, 2018 02:58
Copy link
Member

@sj26 sj26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Upgrading certainly can't hurt.

@lox lox merged commit 54cbbef into master Oct 31, 2018
@lox lox deleted the use-transparent-golang-http2-transport branch October 31, 2018 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants