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

api: revert to defaulting to http/1 #10958

Merged
merged 2 commits into from
Jul 28, 2021
Merged

api: revert to defaulting to http/1 #10958

merged 2 commits into from
Jul 28, 2021

Conversation

notnoop
Copy link
Contributor

@notnoop notnoop commented Jul 28, 2021

PR #10778 incidentally changed the api http client to connect with
HTTP/2 first. However, the websocket libraries used in alloc exec
features don't handle http/2 well, and don't downgrade to http/1
gracefully.

Given that the switch is incidental, and not requested by users.
Furthermore, api consumers can opt-in to forcing http/2 by setting
custom http clients.

Fixes #10922

PR #10778 incidentally changed the api http client to connect with
HTTP/2 first. However, the websocket libraries used in `alloc exec`
features don't handle http/2 well, and don't downgrade to http/1
gracefully.

Given that the switch is incidental, and not requested by users.
Furthermore, api consumers can opt-in to forcing http/2 by setting
custom http clients.
@notnoop notnoop added this to the 1.1.3 milestone Jul 28, 2021
@notnoop notnoop requested review from shoenig and jrasell July 28, 2021 14:13
@notnoop notnoop self-assigned this Jul 28, 2021
Copy link
Member

@jrasell jrasell left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@shoenig shoenig left a comment

Choose a reason for hiding this comment

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

LGTM

@notnoop notnoop merged commit d3835a1 into main Jul 28, 2021
@notnoop notnoop deleted the b-api-keep-http1 branch July 28, 2021 15:21
@notnoop notnoop mentioned this pull request Jul 28, 2021
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

failed to exec into task: malformed HTTP response
3 participants