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: https://git.verplant.org/?a=commitdiff_plain;h=74e5c6f352b98b6f6bc0b0efac36dd182b94186e;p=collectd.git write_riemann: enable TCP keepalive on network socket --- diff --git a/src/write_riemann.c b/src/write_riemann.c index 10f89587..f1437234 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);