summaryrefslogtreecommitdiff
path: root/doc/xs_getsockopt.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/xs_getsockopt.txt')
-rw-r--r--doc/xs_getsockopt.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/xs_getsockopt.txt b/doc/xs_getsockopt.txt
index 5a09453..c113f16 100644
--- a/doc/xs_getsockopt.txt
+++ b/doc/xs_getsockopt.txt
@@ -390,6 +390,19 @@ Option value unit:: N/A (flags)
Default value:: N/A
Applicable socket types:: all
+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
------------