On 20/06/15 05:22, Naveen Singh wrote: > I realized that timers used in dhcp plugin use monotonic timers which does > not progress during suspend duration of device. Because of this the devices > which are sleepy in nature never get to renew IP address and causes lot of > communication failures. > > I have an implementation which in stead of using CLOCK_MONOTONIC uses > CLOCK_BOOTTIME_ALARM. This implementation is based on creating a timer fd > and hooking that fd to a GSource which in turn is attached to GMainLoop. > > Is community open in accepting a patch for this? If yes I could send the > patch for review? > > Regards > Naveen
To get DHCP to work reliably in real life, we (Jolla) ended up replacing connman DHCP timers with our own suspend-aware (but platform-specific) implementation. We would very much love to drop our proprietary stuff and use upstream code as is. If it works. Cheers, -Slava _______________________________________________ connman mailing list [email protected] https://lists.connman.net/mailman/listinfo/connman
