projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f086e79
)
write_tsdb: enable TCP keepalive on network socket
author
Marc Fournier
<marc.fournier@camptocamp.com>
Sat, 13 Feb 2016 11:29:37 +0000
(12:29 +0100)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Tue, 9 Aug 2016 09:07:03 +0000
(11:07 +0200)
src/write_tsdb.c
patch
|
blob
|
history
diff --git
a/src/write_tsdb.c
b/src/write_tsdb.c
index
309418a
..
bf49ba5
100644
(file)
--- a/
src/write_tsdb.c
+++ b/
src/write_tsdb.c
@@
-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)
{