Socket SO KEEPALIVE: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 1: Line 1:
=External=
=External=


* https://docs.oracle.com/javase/8/docs/api/java/net/SocketOptions.html
* https://docs.oracle.com/javase/10/docs/api/java/net/SocketOptions.html


=Internal=
=Internal=

Revision as of 00:39, 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.