From 141816828389e3ad98f66db29b4a702479dcb05d Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Sat, 13 Feb 2016 12:29:37 +0100 Subject: [PATCH] write_tsdb: enable TCP keepalive on network socket --- src/write_tsdb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/write_tsdb.c b/src/write_tsdb.c index 309418a1..bf49ba5f 100644 --- a/src/write_tsdb.c +++ b/src/write_tsdb.c @@ -187,6 +187,8 @@ static int wt_callback_init(struct wt_callback *cb) if (cb->sock_fd < 0) continue; + set_sock_opts(cb->sock_fd); + status = connect(cb->sock_fd, ai_ptr->ai_addr, ai_ptr->ai_addrlen); if (status != 0) { -- 2.30.2