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

Configurable socket keep alive interval #5163

Open
aksabg opened this issue Mar 22, 2024 · 3 comments
Open

Configurable socket keep alive interval #5163

aksabg opened this issue Mar 22, 2024 · 3 comments

Comments

@aksabg
Copy link

aksabg commented Mar 22, 2024

NetServer now supports tcpKeepAlive flag which is translated to Netty's SO_KEEPALIVE flag. However, the keepalive interval, idle time and count cannot be set through settings, which means it defaults to OS values (usually the idle time is 2 hours).

When using NetServer in conjuction with the AWS load balancer, the connections are closed when idle for more than 350 seconds.

The following Netty fields should be supported in NetServerOptions:

  1. TCP_KEEPIDLE
  2. TCP_KEEPINTVL
  3. TCP_KEEPCNT

Reference: reactor/reactor-netty#2167

@aksabg
Copy link
Author

aksabg commented Mar 22, 2024

@vietj I can add this feature, just need the permission to branch.

@vietj
Copy link
Member

vietj commented Mar 27, 2024

@aksabg please contribute it via a pull request

@aksabg
Copy link
Author

aksabg commented Mar 27, 2024

@vietj I don't have permissions to create a remote branch required for a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants