-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Enable h2c traffic for http servers. #3890
Conversation
@bogdandrutu @tigrannajaryan @jpkrohling Attempting to break down the gRPC/HTTP port combination work. This PR is a prerequisite to #3765 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks sane, but I would love to see a benchmark in the test suite to have an idea of what this change causes in terms of performance.
Good idea regarding the benchmark! 💡 Before:
After:
|
I also added a benchmark to verify that any performance delta would only be when using noTLS settings. TLS traffic before and after should have no deltas. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
1799a3b
to
e0069e3
Compare
This needs to be merged before 9/24. @bogdandrutu will review. |
config/confighttp/confighttp_test.go
Outdated
// Check that h2c payloads are handled when serving insecure traffic | ||
if tt.tlsClientCreds.Insecure { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider to have this as a separate test only for this config. It is not recommended to add this and be run only for one of the "sub-tests".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bogdandrutu done!
@bogdandrutu have you had a chance to review? I'll need to close this by end of day 9/24 (approximately 8 hours from now) |
@bogdandrutu Looks like this PR was pretty close. I was not closely involved in this work, but I can get it reopened if it looks good to you. |
Description: Added support for h2c traffic on http servers generated by confighttp.
This is in preparation for combining gRPC / HTTP ports for OTLP (see #3765 for the complete use case)
Testing: The HTTP receive tests have been updated to check for both http/1.1 and h2c traffic when "insecure" mode / non-TLS is used.