]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/afp_options.c
Better handling of connection errors and disconnect state
[netatalk.git] / etc / afpd / afp_options.c
index 407a594a769511d4aa39c9cbde24aba75b3c23a7..b8e5130b67a6ccc58f5d0b3653a0d54cf523bbcb 100644 (file)
@@ -159,8 +159,9 @@ void afp_options_init(struct afp_options *options)
     options->transports = AFPTRANS_TCP; /*  TCP only */
     options->passwdfile = _PATH_AFPDPWFILE;
     options->tickleval = 30;
-    options->timeout = 4;
+    options->timeout = 4;       /* 4 tickles = 2 minutes */
     options->sleep = 10* 120; /* 10 h in 30 seconds tick */
+    options->disconnected = 20; /* 20 * 30 s (default tickleval) = 10 minutes */
     options->server_notif = 1;
     options->authprintdir = NULL;
     options->signatureopt = "auto";