Feature request: CLOCK_BOOTTIME clock option
Hey, guys:
I am using libmosquitto to build a MQTT client in a embeded Linux system. For low energy purpose, the whole system will suspend when using battery power and no work to handle. I hope the system can keep alive with broker so it can be waked up by network. the system will wake up to send PINGREQ to keep alive with broker during suspending every 0.5 keepalive time. However the clock option libmosquitto using is CLOCK_MONOTONIC in this system, thats means timestamp wouldn't increase when the system is suspending. PINGREQ wouldn't be sended even if the interval has been over the keepalive time, and that cause client was disconnected by broker frequently .
Can you consider provide CLOCK_BOOTTIME clock for those system may suspend in some situation.
Thanks.
Yes! That sounds like a sensible request.