projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7df18f1
)
Don't send PING requests on connections which are not active yet.
author
Guus Sliepen
<guus@tinc-vpn.org>
Wed, 25 Sep 2013 19:24:05 +0000
(21:24 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Wed, 25 Sep 2013 19:24:05 +0000
(21:24 +0200)
This happened when sending an ALRM signal to a running tincd, which caused it
to send PING requests on any connection, regardless of its status.
src/net.c
patch
|
blob
|
history
diff --git
a/src/net.c
b/src/net.c
index
e5ffc4f
..
b2fe0de
100644
(file)
--- a/
src/net.c
+++ b/
src/net.c
@@
-490,7
+490,8
@@
int main_loop(void) {
expire_events();
for(node = connection_tree->head; node; node = node->next) {
connection_t *c = node->data;
- send_ping(c);
+ if(c->status.active)
+ send_ping(c);
}
sigalrm = false;
}