Skip to content

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
@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.

2 participants