Skip to content

validate options passed to socket longpoll / websocket options#6072

Merged
SteffenDE merged 1 commit into
mainfrom
sd-validate-socket-opts
Feb 5, 2025
Merged

validate options passed to socket longpoll / websocket options#6072
SteffenDE merged 1 commit into
mainfrom
sd-validate-socket-opts

Conversation

@SteffenDE

Copy link
Copy Markdown
Member

We cannot validate options other than websocket / longpoll, because they might be used by custom sockets. See ab2ff9e#diff-5ab73ffaee87d2c9de2a1455f11157d5d3c0dd01157ee019d58d37b19dafd68eR29.

@josevalim please double check if validating the websocket / longpoll keys is actually fine.

@josevalim josevalim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM but let's not backport this one, as it may crash!

@SteffenDE
SteffenDE merged commit 91d25f5 into main Feb 5, 2025
@SteffenDE
SteffenDE deleted the sd-validate-socket-opts branch February 5, 2025 14:30
SteffenDE added a commit that referenced this pull request Feb 14, 2025
@giddie

giddie commented May 13, 2026

Copy link
Copy Markdown

Just wondering whether it was intentional to include only a subset of the websock_adapter opts in the list of keys? In particular we're relying on deflate_options to reduce scheduler usage.

giddie added a commit to Whatnot-Inc/phoenix that referenced this pull request May 13, 2026
@edgurgel

Copy link
Copy Markdown
Contributor

#6758 Opened this one to add missing config keys that websock_adapter supports

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.

4 participants