-
Notifications
You must be signed in to change notification settings - Fork 338
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
Implement Keepalive Connection String Options #132
Comments
Respecting System-Wide TCP Keepalive Operating Systems (both Windoows and Linux) have default TCP Keepalive values, but TCP Keepalive must be enabled on the socket in order for Keepalive to be used. (Windows Reference, Linux Reference) This setting is achieved by calling Should we always enable TCP Keepalive on the Socket? Or only if the Overriding System-Wide settings with Per-Socket settings There are 3 settings that can be overridden, outlined here. Example:
Overriding the system-wide parameters on Windows is described in this stackoverflow post Overriding the system-wide parameters on Linux needs to be done with socket options, described here. I will have to dig into .NET's socket option ENUMs and see if these are defined |
I can't get the socket-level options to work on Linux or OSX, the proper Socket Options are not available in .NET Core. Opened upstream: |
Shipped in 0.8.0. |
Keep Alive, Keepalive
(default: 0) For TCP connections, idle connection time measured in seconds, before the first keepalive packet is sent. A value of 0 indicates that keepalive is not used.Should call
socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.KeepAlive, value)
on TCP Socket ifvalue > 0
The text was updated successfully, but these errors were encountered: