Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add so_reuseaddr stream context option #19967

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

Draft
bukka wants to merge 1 commit into php:master
base: master
Choose a base branch
Loading
from bukka:stream_so_reuseaddr

Conversation

Copy link
Member

@bukka bukka commented Sep 25, 2025

This is to allow disabling of SO_REUSEADDR that is enabled by default.

The test actually took me quite long time to get it right. The crucial part is not to close $accepted which keeps client in FIN-WAIT-2.

This is to allow disabling of SO_REUSEADDR that is enabled by default.
To achieve compatibility on Windows SO_EXCLUSIVEADDRUSE is set if
so_reuseaddr is false.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /