Code

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 2dce2d716cfb64e8e2802eb1f9e18564979b92d9..77003f1cd635634d4521008d9b12e7509de1c3bb 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)
         {