summaryrefslogtreecommitdiff
path: root/src/options.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-03-28 09:20:38 +0200
committerMartin Sustrik <sustrik@250bpm.com>2012-03-28 09:20:38 +0200
commit9c7e081f51063b6cdb4674f4d2e6c4eab502a327 (patch)
tree25c46150eee45e6ad327b2e5e92fd8802fff72a5 /src/options.hpp
parente440e55d45a571c221af9c1657a2006597a6b88f (diff)
XS_KEEPALIVE options added
This option allows to turn on TCP keepalives on the underlying connections. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/options.hpp')
-rw-r--r--src/options.hpp3
1 files changed, 3 insertions, 0 deletions
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;