]> arthur.barton.de Git - netatalk.git/commitdiff
Give IPC reconnect more time
authorFrank Lahm <franklahm@googlemail.com>
Tue, 26 Jul 2011 09:27:41 +0000 (11:27 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Tue, 26 Jul 2011 09:27:41 +0000 (11:27 +0200)
libatalk/util/server_ipc.c

index 46f897796445510c296931aa2e016e7efc08fe2b..9b152195ea14ef4710f175b102e7ec9b56a5183c 100644 (file)
@@ -189,7 +189,7 @@ int reconnect_ipc(AFPObj *obj)
     obj->ipc_fd = -1;
 
     srandom(getpid());
-    sleep((random() % 5) + 5);  /* give it enough time to start */
+    sleep((random() % 5) + 15);  /* give it enough time to start */
 
     while (retrycount++ < 10) {
         if ((obj->ipc_fd = ipc_client_uds(_PATH_AFP_IPC)) == -1) {