projects
/
project
/
mdnsd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b777a0b
)
reconnect: increase initial connect delay
author
John Crispin
<john@phrozen.org>
Wed, 30 Jun 2021 12:15:53 +0000
(14:15 +0200)
committer
John Crispin
<john@phrozen.org>
Wed, 30 Jun 2021 12:15:53 +0000
(14:15 +0200)
The initial reconnect will almost always fail and then retry after 1s.
Use 1s instead of 100ms.
Signed-off-by: John Crispin <john@phrozen.org>
interface.c
patch
|
blob
|
history
diff --git
a/interface.c
b/interface.c
index 5fb9bad072edbec2bcb43c12d6c0a37a588a5a2a..e3febb8a868e5213e3475c59427921e3b6a5f3af 100644
(file)
--- a/
interface.c
+++ b/
interface.c
@@
-511,7
+511,7
@@
static void interface_start(struct interface *iface)
iface->fd.cb = read_socket4;
iface->reconnect.cb = reconnect_socket4;
}
- uloop_timeout_set(&iface->reconnect, 100);
+ uloop_timeout_set(&iface->reconnect, 100
0
);
}
static void