chrony switch source issue

"Bernstein, Amit" <[email protected]>
Newsgroups gmane.comp.time.chrony.user
Message-ID <[email protected]>
Hi,
If configuring chrony sources to PHC and NTP, and while PHC is the current chosen source,
In case PHC source returns zero timestamp (get_phc_sample<https://github.com/mlichvar/chrony-nts/blob/master/sys_linux.c#L694>) Chrony will validate the timestamp, calculate the source score and will switch to a better source (NTP) as expected
But in case PHC source returns a failed status (for example -EIO)  Chrony will not switch the sources and will stay on PHC source for an infinite time
Although Chrony debug logs indicates the error:
sys_linux.c:859:(get_phc_sample) ioctl(PTP_SYS_OFFSET) failed : Input/output error

Is that a wanted behavior?
Thanks
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.