]> arthur.barton.de Git - netatalk.git/commitdiff
Set disconnect timeout to the same value as sleep timeout.
authorFrank Lahm <franklahm@googlemail.com>
Thu, 11 Aug 2011 12:39:14 +0000 (14:39 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Thu, 11 Aug 2011 12:39:14 +0000 (14:39 +0200)
Avoid adding an additional option, because without intimate knowledge of the underlying semtantics, noone but the implementor is really able to make an educated choice.

etc/afpd/afp_options.c

index 43992ed771f8f9e2d8f3c7c981cdc085cfefb2c7..028a1efb2c6702d006783b0c20d0a198d41e53f1 100644 (file)
@@ -326,9 +326,9 @@ int afp_options_parseline(char *buf, struct afp_options *options)
     }
 
     if ((c = getoption(buf, "-sleep"))) {
-        options->sleep = atoi(c) *120;
+        options->disconnected = options->sleep = atoi(c) * 120;
         if (options->sleep <= 4) {
-            options->sleep = 4;
+            options->disconnected = options->sleep = 4;
         }
     }