diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-03-28 09:20:38 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-03-28 09:20:38 +0200 |
commit | 9c7e081f51063b6cdb4674f4d2e6c4eab502a327 (patch) | |
tree | 25c46150eee45e6ad327b2e5e92fd8802fff72a5 /src/tcp_connecter.cpp | |
parent | e440e55d45a571c221af9c1657a2006597a6b88f (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/tcp_connecter.cpp')
-rw-r--r-- | src/tcp_connecter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tcp_connecter.cpp b/src/tcp_connecter.cpp index f938967..c819f86 100644 --- a/src/tcp_connecter.cpp +++ b/src/tcp_connecter.cpp @@ -108,7 +108,7 @@ void xs::tcp_connecter_t::out_event (fd_t fd_) return; } - tune_tcp_socket (fd); + tune_tcp_socket (fd, options.keepalive ? true : false); // Create the engine object for this connection. stream_engine_t *engine = new (std::nothrow) stream_engine_t (fd, options); |