From: Marc Fournier Date: Sat, 13 Feb 2016 11:29:13 +0000 (+0100) Subject: write_graphite: enable TCP keepalive on network socket X-Git-Tag: collectd-5.6.0~67^2~3 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=f8d0e8e1ab1bf901f43398b8549c302b85979b40;p=collectd.git write_graphite: enable TCP keepalive on network socket --- diff --git a/src/write_graphite.c b/src/write_graphite.c index 2dce2d71..77003f1c 100644 --- a/src/write_graphite.c +++ b/src/write_graphite.c @@ -240,6 +240,8 @@ static int wg_callback_init (struct wg_callback *cb) continue; } + set_sock_opts (cb->sock_fd); + status = connect (cb->sock_fd, ai_ptr->ai_addr, ai_ptr->ai_addrlen); if (status != 0) {