Socket SO KEEPALIVE: Difference between revisions
Jump to navigation
Jump to search
Line 17: | Line 17: | ||
</pre> | </pre> | ||
The KeepAlive parameters can be only set at the operating system level. | The KeepAlive parameters can be only set at the operating system level. | ||
Revision as of 00:27, 26 July 2018
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.