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

Properly apply socket options #1638

Merged
merged 1 commit into from
Sep 11, 2023
Merged

Properly apply socket options #1638

merged 1 commit into from
Sep 11, 2023

Conversation

jguerra
Copy link
Collaborator

@jguerra jguerra commented Sep 8, 2023

These errors have always annoyed me:

2023-09-08T15:30:58.748 WARN  [main] io.netty.bootstrap.ServerBootstrap: Unknown channel option 'SO_LINGER' for channel '[id: 0x08c9bd45]'
2023-09-08T15:30:58.748 WARN  [main] io.netty.bootstrap.ServerBootstrap: Unknown channel option 'SO_KEEPALIVE' for channel '[id: 0x08c9bd45]'
2023-09-08T15:30:58.748 WARN  [main] io.netty.bootstrap.ServerBootstrap: Unknown channel option 'TCP_NODELAY' for channel '[id: 0x08c9bd45]'

turns out we were attempting to apply the options incorrectly

Copy link
Contributor

@gavinbunney gavinbunney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤨 Does that mean we haven't had keepalive enabled at all? Looking at the docs, seems like that's the case, but more from server-side, so may cause more server-side closures... neat

@jguerra
Copy link
Collaborator Author

jguerra commented Sep 11, 2023

🤨 Does that mean we haven't had keepalive enabled at all? Looking at the docs, seems like that's the case, but more from server-side, so may cause more server-side closures... neat

Yeah, it has not been enabled. I expect the impact to be fairly minimal because TCP keepalives only occur after ~2 hours, and we have aggressive idle timeouts on all connections.

@jguerra jguerra merged commit 5bfd822 into master Sep 11, 2023
@jguerra jguerra deleted the jg/options branch February 29, 2024 21:45
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