Re: Improvement request: network status should not affect chronyc
Bill Unruh <[email protected]>
| Newsgroups | gmane.comp.time.chrony.user |
|---|---|
| Message-ID | <[email protected]> |
Tell it to just use IP addresses. The delay is while it it trying to figure out the name of the source from the IP address I believe. I believe there is flag for the sources command to tell it not to use the DNS William G. Unruh __| Canadian Institute for|____ Tel: +1(604)822-3273 Physics&Astronomy _|___ Advanced Research _|____ Fax: +1(604)822-5324 UBC, Vancouver,BC _|_ Program in Cosmology |____ [email protected] Canada V6T 1Z1 ____|____ and Gravity ______|_ theory.physics.ubc.ca/ On Tue, 12 Dec 2023, Hollerer Franz, Schrack Seconet AG, Entwicklung wrote: > [CAUTION: Non-UBC Email] > > I have an improvement request for chronyc, more precisely its sources command. I call "chronyc sources" via popen() from a C program to determine if the system time can be considered synchronized or not. > > Unfortunately, if the network cable is disconnected, it takes about ~ 15 seconds for "chronyc sources" to complete. The initial connection to chronyd takes place immediately, also the header of the commands' output is print immediately. But then there is a very long delay till the line with the NTP server status is printed. > > This means that the disconnected network cable has a non-negligible negative effect on the command line interface (CLI), although chronyd and chronyc run on the same host. > > It would be nice if the network status would not affect chronyc, i.e., chronyc completes promptly. > > Thanks > > Franz Hollerer > > -- > To unsubscribe email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org > with "unsubscribe" in the subject. > For help email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org > with "help" in the subject. > Trouble? Email [email protected] > > -- To unsubscribe email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org with "unsubscribe" in the subject. For help email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org with "help" in the subject. Trouble? Email [email protected]