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

Support non-TLS HTTP/2 (i.e. H2C) #1968

Closed
wants to merge 1 commit into from

Conversation

RoySunnySean007
Copy link

@RoySunnySean007 RoySunnySean007 commented Apr 15, 2021

Http2.0 non-tls patch
Pls help to check if we did sth wrong, thx!

(edited by @na-- - this is the relevant issue: #970)

Http2.0 non-tls patch
@na-- na-- changed the title Update runner.go Support non-TLS HTTP/2 (i.e. H2C) Apr 19, 2021
Copy link
Member

@na-- na-- left a comment

Choose a reason for hiding this comment

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

As I explained in the issue, we won't be able to merge this because it likely breaks k6 for every other use case...

Comment on lines 199 to +200
_ = http2.ConfigureTransport(transport)
http2Transport, err := http2.ConfigureTransports(transport)
Copy link
Member

Choose a reason for hiding this comment

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

You shouldn't call both http2.ConfigureTransport() and http2.ConfigureTransports(), they do the same thing.

Suggested change
_ = http2.ConfigureTransport(transport)
http2Transport, err := http2.ConfigureTransports(transport)
http2Transport, err := http2.ConfigureTransports(transport)

Also, you may have to pass the http2Transport as the VU.Transport below, though I'm not completely sure about that... 🤷‍♂️

@na-- na-- closed this Apr 19, 2021
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.

2 participants