Skip to content

Make websocket disconnect codes explicit#6678

Merged
SteffenDE merged 3 commits into
phoenixframework:mainfrom
mtrudel:fix-websocket-close-code
May 22, 2026
Merged

Make websocket disconnect codes explicit#6678
SteffenDE merged 3 commits into
phoenixframework:mainfrom
mtrudel:fix-websocket-close-code

Conversation

@mtrudel
Copy link
Copy Markdown
Member

@mtrudel mtrudel commented May 15, 2026

Credit to @dl-alexandre for this; they had worked it up on a bandit issue, but since their org is blocked from opening PRs on the phoenix project I'm doing it by proxy.

I've triaged this from Bandit/Cowboy's perspective and it's legit.

@SteffenDE
Copy link
Copy Markdown
Contributor

Can you fix the tests?

@mtrudel
Copy link
Copy Markdown
Member Author

mtrudel commented May 18, 2026

Tests updated!

Comment thread lib/phoenix/socket.ex Outdated
Comment thread test/phoenix/socket/socket_test.exs Outdated
Co-authored-by: Steffen Deusch <steffen@deusch.me>
@SteffenDE SteffenDE merged commit b6a4e31 into phoenixframework:main May 22, 2026
6 checks passed
@SteffenDE
Copy link
Copy Markdown
Contributor

Thank you @mtrudel!

@dl-alexandre was blocked because of numerous low-quality AI contributions. Looking at the bandit issue, I'm not even sure how much of the communication is done by Dalton Alexandre, the person. Quoting:

If a maintainer here has push access to dl-alexandre/phoenix's fork branch they could open the PR upstream from it; otherwise the diff is small enough to lift wholesale. Happy to answer questions on the analysis if useful.

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