]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
client: don't shorten default timeout with ASYNCDNS
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 30 Sep 2015 12:20:49 +0000 (14:20 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 30 Sep 2015 12:35:05 +0000 (14:35 +0200)
With connected sockets recv() should fail immediately if chronyd is not
listening on localhost and with the Unix socket connecting should fail.

chrony.texi.in
client.c

index 6a740d57a63841fc4ed7911e0436b1cb1bf99a98..c0f8b1c4bb1dd6009f3a2549f5c7ee8b00e8a179 100644 (file)
@@ -4526,9 +4526,7 @@ in milliseconds.  If no response is received from @code{chronyd}, the timeout is
 doubled and the request is resent.  The maximum number of retries is configured
 with the @code{retries} command (@pxref{retries command}).
 
-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.
+By default, the timeout is 1000 milliseconds.
 @c }}}
 @c {{{ tracking
 @node tracking command
index a02da4d0d85df015579493ad61d630e480111531..234c9b318df2c0ecea8315a57c9450bbcdaf0540 100644 (file)
--- a/client.c
+++ b/client.c
@@ -2710,9 +2710,6 @@ main(int argc, char **argv)
 
   if (!hostnames) {
     hostnames = DEFAULT_COMMAND_SOCKET",127.0.0.1,::1";
-#ifdef FEAT_ASYNCDNS
-    initial_timeout /= 10;
-#endif
   }
 
   UTI_SetQuitSignalsHandler(signal_handler);