On Mon, Jun 22, 2015 at 5:46 AM, Patrik Flykt <[email protected]>
wrote:

> On Fri, 2015-06-19 at 19:22 -0700, 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.
>
> This affects all timers set by ConnMan, so a generic fix would be of
> interest. Hasn't this been implemented in some version of glib already?
>

I have the latest Glib (2.43.2). I did not find any thing in glib to
support this.

>
> > 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?
>
> I'd definitely want this kind of thing being fixed in glib. How
> ugly/intrusive is your patch?
>

I have defined two functions
One to replace g_timeout_add_full and other for g_timeout_add_seconds_full.
We may not want to replace all the timers in connman.
I can send you the patch. The timers have been put in a different file.

>
> Cheers,
>
>         Patrik
>
> _______________________________________________
> connman mailing list
> [email protected]
> https://lists.connman.net/mailman/listinfo/connman
>
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to