Skip to content

Use SO_REUSEADDR instead of SO_REUSEPORT as default#2409

Closed
angt wants to merge 1 commit intoyhirose:masterfrom
angt:use-so_reuseaddr-instead-of-so_reuseport-as-default
Closed

Use SO_REUSEADDR instead of SO_REUSEPORT as default#2409
angt wants to merge 1 commit intoyhirose:masterfrom
angt:use-so_reuseaddr-instead-of-so_reuseport-as-default

Conversation

@angt
Copy link
Copy Markdown
Contributor

@angt angt commented Mar 26, 2026

SO_REUSEPORT should be opt-in rather than opt-out to prevent silent port
sharing by default, only servers that intentionally want to share the
same port should enable it.

This is related to this issue: ggml-org/llama.cpp#20963.
This is a proposal. If not accepted we can override the socket options in llama.cpp instead.

SO_REUSEPORT should be opt-in rather than opt-out to prevent silent port
sharing by default, only servers that intentionally want to share the
same port should enable it.

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
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.

1 participant