From 74e5c6f352b98b6f6bc0b0efac36dd182b94186e Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Sat, 13 Feb 2016 12:29:21 +0100 Subject: [PATCH] write_riemann: enable TCP keepalive on network socket --- src/write_riemann.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.30.2