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

KTOR-6384 Fix Websocket Extension negotiation - #4709

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

lhsvozil
Copy link
Contributor

@lhsvozil lhsvozil commented Feb 26, 2025

According to RFC 6455 protocols are delimited by comma and arguments by semicolon, not the other way around

https://datatracker.ietf.org/doc/html/rfc6455#page-48

Subsystem
Client/Server, Websocket extension

Motivation
Fixes a bug KTOR-6384

Solution
Just swap the delimeters for protocols and their arguments.

@osipxd osipxd self-assigned this Feb 26, 2025
Copy link
Member

@osipxd osipxd left a comment

Choose a reason for hiding this comment

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

Hey @lhsvozil, thank you for the PR! Nicely done!

… protocols are delimited by comma and arguments by semicolon, not the other way around

https://datatracker.ietf.org/doc/html/rfc6455#page-48
@osipxd osipxd enabled auto-merge (squash) February 26, 2025 15:55
@lhsvozil
Copy link
Contributor Author

Hi @osipxd, no problem, that was an easy fix.

Regarding the tests, is it possible that those are random failing? I have rerun those locally in Idea and they are green.. Do you have chance to rerun them? Thanks!

@osipxd osipxd merged commit f02140d into ktorio:main Feb 26, 2025
13 of 16 checks passed
@osipxd
Copy link
Member

osipxd commented Feb 26, 2025

Yes, those tests are flaky.
Merged!

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.

3 participants