From: John Crispin Date: Wed, 30 Jun 2021 12:15:53 +0000 (+0200) Subject: reconnect: increase initial connect delay X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=4a8747193ab2b8f2d68a9d26334545e19d89cbe2;p=project%2Fmdnsd.git reconnect: increase initial connect delay The initial reconnect will almost always fail and then retry after 1s. Use 1s instead of 100ms. Signed-off-by: John Crispin --- diff --git a/interface.c b/interface.c index 5fb9bad..e3febb8 100644 --- 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, 1000); } static void