summaryrefslogtreecommitdiff
path: root/doc/xs_setsockopt.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/xs_setsockopt.txt')
-rw-r--r--doc/xs_setsockopt.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/xs_setsockopt.txt b/doc/xs_setsockopt.txt
index 6263a26..e9a7050 100644
--- a/doc/xs_setsockopt.txt
+++ b/doc/xs_setsockopt.txt
@@ -348,6 +348,19 @@ Option value unit:: boolean
Default value:: 1 (true)
Applicable socket types:: all, when using TCP transports.
+XS_KEEPALIVE: Use TCP keepalives
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+When set to `1` TCP keepalives are enabled. This option can be used to prevent
+the infrastructure (VPNs and similar) to terminate connections with no activity.
+The keepalive period as such is normally a global OS setting.
+
+[horizontal]
+Option value type:: int
+Option value unit:: boolean
+Default value:: 0 (false)
+Applicable socket types:: all, when using TCP transports.
+
RETURN VALUE
------------