Socket SO KEEPALIVE: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
=External= | |||
* https://docs.oracle.com/javase/8/docs/api/java/net/SocketOptions.html | |||
=Internal= | =Internal= | ||
Revision as of 17:45, 20 March 2017
External
Internal
Overview
All we can do on a Java socket is to turn TCP KeepAlive on or off - apparently on a per-socket based:
void setKeepAlive(boolean); boolean getKeepAlive();
The KeepAlive parameters can be only set at the operating system level.
See: https://home.feodorov.com:9443/wiki/Wiki.jsp?page=TCP#section-TCP-KeepAlive