From: Marc Fournier Date: Sat, 13 Feb 2016 11:29:37 +0000 (+0100) Subject: write_tsdb: enable TCP keepalive on network socket X-Git-Tag: collectd-5.6.0~67^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=141816828389e3ad98f66db29b4a702479dcb05d;p=collectd.git write_tsdb: enable TCP keepalive on network socket --- 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) {