From: Marc Fournier Date: Sat, 13 Feb 2016 11:29:21 +0000 (+0100) Subject: write_riemann: enable TCP keepalive on network socket X-Git-Tag: collectd-5.6.0~67^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74e5c6f352b98b6f6bc0b0efac36dd182b94186e;p=thirdparty%2Fcollectd.git write_riemann: enable TCP keepalive on network socket --- diff --git a/src/write_riemann.c b/src/write_riemann.c index 10f89587b..f14372343 100644 --- a/src/write_riemann.c +++ b/src/write_riemann.c @@ -112,6 +112,8 @@ static int wrr_connect(struct riemann_host *host) /* {{{ */ } } + set_sock_opts(riemann_client_get_fd(host->client)); + c_release(LOG_INFO, &host->init_complaint, "write_riemann plugin: Successfully connected to %s:%d", node, port);