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

index 309418a..bf49ba5 100644 (file)
@@ -187,6 +187,8 @@ static int wt_callback_init(struct wt_callback *cb)
         if (cb->sock_fd < 0)
             continue;
 
+        set_sock_opts(cb->sock_fd);
+
         status = connect(cb->sock_fd, ai_ptr->ai_addr, ai_ptr->ai_addrlen);
         if (status != 0)
         {