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

Discard inherited connections on fork rather than close them #126

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

casperisfine
Copy link
Collaborator

Calling close can sometimes lead to FIN or RST being emitted.

If this happens original connection in the parent will be impacted.

To avoid this we use a classic dup2(/dev/null) + close dance.

Calling close can sometimes lead to `FIN` or `RST` being emitted.

If this happens original connection in the parent will be impacted.

To avoid this we use a classic `dup2(/dev/null) + close` dance.
@casperisfine casperisfine merged commit 1b420ed into master Aug 1, 2023
22 checks passed
@casperisfine casperisfine deleted the discard-connection-on-fork branch August 1, 2023 12:38
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.

None yet

2 participants