Socket SO KEEPALIVE: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Java Networking")
 
No edit summary
Line 2: Line 2:


* [[Java_Networking#Socket_Configuration|Java Networking]]
* [[Java_Networking#Socket_Configuration|Java Networking]]
=Overview=
All we can do on a Java socket is to turn TCP KeepAlive on or off - apparently on a per-socket based:
<pre>
void setKeepAlive(boolean);
boolean getKeepAlive();
</pre>
The KeepAlive parameters can be only set at the operating system level.
<font color=red>
See: https://home.feodorov.com:9443/wiki/Wiki.jsp?page=TCP#section-TCP-KeepAlive
</font>

Revision as of 17:39, 20 March 2017

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