reconnect: increase initial connect delay
authorJohn Crispin <john@phrozen.org>
Wed, 30 Jun 2021 12:15:53 +0000 (14:15 +0200)
committerJohn 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

index 5fb9bad072edbec2bcb43c12d6c0a37a588a5a2a..e3febb8a868e5213e3475c59427921e3b6a5f3af 100644 (file)
@@ -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