write_graphite: enable TCP keepalive on network socket
authorMarc Fournier <marc.fournier@camptocamp.com>
Sat, 13 Feb 2016 11:29:13 +0000 (12:29 +0100)
committerMarc Fournier <marc.fournier@camptocamp.com>
Tue, 9 Aug 2016 09:06:54 +0000 (11:06 +0200)
src/write_graphite.c

index 2dce2d7..77003f1 100644 (file)
@@ -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)
         {