Open mob-lesu opened 3 years ago
It sounds like your embedded platform does not define _POSIX_MONOTONIC_CLOCK
, so mosquitto is unable use clock_gettime(CLOCK_MONOTONIC, &tp)
to get the current time, and must use time(NULL)
instead. The output of CLOCK_MONOTONIC does not change when date -s ....
is used, but the output of time(NULL)
does.
This does seem unlikely though, musl c has supported them for years for example. What platform are you using, and can you confirm it does support CLOCK_MONOTONIC?
Environment: Linux in embedded project, Mosquitto 1.6.12 Test steps:
Current behavior: Several client services are disconnected and then reconnected.
Expected: No disconnection occurs.
This might be related to:
Thanks in advance for Your help.