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

Do not set SO_LINGER by default #110

Merged
merged 1 commit into from
Feb 21, 2024
Merged

Do not set SO_LINGER by default #110

merged 1 commit into from
Feb 21, 2024

Conversation

mtrudel
Copy link
Owner

@mtrudel mtrudel commented Feb 21, 2024

This should fix a number of 'freeze' related issues on larger instances, particularly those behind network layer load balancers.

The origin of setting SO_LINGER dates way back to the earliest days of Thousand Island, and the original reasoning for it is lost to the ages. We're in good company by removing it though; it's an odd choice for a socket library and eg. ranch doesn't set it by default either.

@mtrudel mtrudel merged commit b014f8f into main Feb 21, 2024
9 checks passed
@mtrudel mtrudel deleted the nolinger branch February 21, 2024 17:51
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