From 9c7e081f51063b6cdb4674f4d2e6c4eab502a327 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Wed, 28 Mar 2012 09:20:38 +0200 Subject: XS_KEEPALIVE options added This option allows to turn on TCP keepalives on the underlying connections. Signed-off-by: Martin Sustrik --- src/options.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/options.hpp') diff --git a/src/options.hpp b/src/options.hpp index 1ea61bd..3e47336 100644 --- a/src/options.hpp +++ b/src/options.hpp @@ -89,6 +89,9 @@ namespace xs // connect to and accept connections from both IPv4 and IPv6 hosts. int ipv4only; + // If 1, keepalives are to be sent periodically. + int keepalive; + // If true, session reads all the pending messages from the pipe and // sends them to the network when socket is closed. bool delay_on_close; -- cgit v1.2.3