doubled and the request is resent. The maximum number of retries is configured
with the @code{retries} command (@pxref{retries command}).
-The default is 1000 milliseconds.
+By default, the timeout is 1000 milliseconds or 100 milliseconds if
+@code{chronyc} is contacting localhost (i.e. the `-h' option wasn't specified)
+and @code{chronyd} was compiled with asynchronous name resolving.
@c }}}
@c {{{ tracking
@node tracking command
const char *progname = argv[0];
const char *hostname = "localhost";
const char *conf_file = DEFAULT_CONF_FILE;
- int quit = 0, ret = 1, multi = 0, auto_auth = 0;
+ int quit = 0, ret = 1, multi = 0, auto_auth = 0, short_timeout = 1;
int port = DEFAULT_CANDM_PORT;
/* Parse command line options */
if (*argv) {
hostname = *argv;
}
+ short_timeout = 0;
} else if (!strcmp(*argv, "-p")) {
++argv, --argc;
if (*argv) {
}
}
+ if (short_timeout) {
+#ifdef FEAT_ASYNCDNS
+ initial_timeout /= 10;
+#endif
+ }
+
if (isatty(0) && isatty(1) && isatty(2)) {
on_terminal = 1;
}