Skip to content

network: cleanup connection logic and crash when fd cannot be allocated#237

Merged
mattklein123 merged 1 commit intomasterfrom
cleanup_logic
Nov 21, 2016
Merged

network: cleanup connection logic and crash when fd cannot be allocated#237
mattklein123 merged 1 commit intomasterfrom
cleanup_logic

Conversation

@mattklein123
Copy link
Copy Markdown
Member

The fix in 8d5366 looks good. This commit further cleans up the socket
close logic to make it simpler and more unified. It also changes the
behavior to crash the process if we can't allocate a socket or we have
an error during accept. In practice those only happen when we run out of
FDs which should be considered an OOM condition where we also crash on
purpose.

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

3 participants