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

Automated cherry pick of #17142 #17145

Conversation

mattermost-build
Copy link
Contributor

Cherry pick of #17142 on release-5.33.

/cc @agnivade

…dshakes (mattermost#17142)

Our proxy configuration was historically incorrect, due to which
a lot of customers have that in their setups. As a result, strictly
following the websocket RFC results in a breaking change.

For now, we transparently upgrade the version header to 1.1, if we detect 1.0.
If a client was sending 1.0, it wouldn't have worked anyways because persistent
connections were introduced from 1.1 onwards.

https://mattermost.atlassian.net/browse/MM-33836

```release-note
WebSocket handshakes done with HTTP version lower than 1.1 will result in a warning,
and the server will transparently upgrade the version to 1.1 to comply with the
websocket RFC.

This is done to work around incorrect nginx (and other proxy) configs that do not set
the proxy_http_version directive to 1.1.

This facility will be removed in a future Mattermost version and it is strongly recommended
to fix the proxy configuration to correctly use the websocket protocol.
```

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
(cherry picked from commit 4c5ea07)
@mm-cloud-bot
Copy link

@mattermost-build: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

I understand the commands that are listed here

@mattermod mattermod added this to the v5.33.0 milestone Mar 15, 2021
@mattermod mattermod added AutomatedCherryPick Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Mar 15, 2021
@mattermod mattermod requested a review from agnivade March 15, 2021 17:32
@amyblais amyblais removed the request for review from agnivade March 15, 2021 17:36
@amyblais
Copy link
Member

/release-note-none

@mm-cloud-bot mm-cloud-bot added release-note-none Denotes a PR that doesn't merit a release note. and removed do-not-merge/release-note-label-needed labels Mar 15, 2021
@agnivade agnivade added AutoMerge Used by Mattermod to merge PR automatically do-not-merge/release-note-label-needed and removed release-note-none Denotes a PR that doesn't merit a release note. labels Mar 15, 2021
@mattermod
Copy link
Contributor

Will try to auto merge this PR once all tests and checks are passing. This might take up to an hour.

@mm-cloud-bot mm-cloud-bot added release-note-none Denotes a PR that doesn't merit a release note. and removed do-not-merge/release-note-label-needed labels Mar 15, 2021
@amyblais
Copy link
Member

/update-branch

@amyblais
Copy link
Member

@agnivade @metanerd This PR is failing ^

@amyblais
Copy link
Member

/update-branch

@mattermod
Copy link
Contributor

Trying to auto merge this PR.

@mattermod mattermod merged commit 55783be into mattermost:release-5.33 Mar 15, 2021
@mattermod
Copy link
Contributor

Pull Request successfully merged
SHA: 55783be

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AutomatedCherryPick Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation release-note-none Denotes a PR that doesn't merit a release note.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants