Hi,
On Thu, 2013-10-31 at 12:15 -0700, Andrew LeCain wrote:
> This patchset exposes DHCP statistics such as expiration time and dhcp
> state
> to allow the system as a whole to make sleep and wake decisions based
> on these
> timestamps. As currently implemented, the dhcp renewal state machine
> happens in a relatively isolated state machine that only informs the
> application of
> changes in ipconfig.
I would need to know more of the intended use case for this one.
When you say "system as a whole", that somehow implies that the system
as a whole is going to some form of deep sleep. Are only a selected set
of processes suspended, is the whole user space frozen or the whole
thing including kernel and user space? What is the real use case behind
the lease expiration exporting and can that use case be handled instead
with ConnMan using a specific API in the system instead of implicitely
posting timers?
Have you taken a look at the Session API? As it informs applications of
connections appearing and disappearing, can this be a part of the
solution you are looking for?
> With these statistics published, more intelligent decisions can be
made about
> when to hold of sleeping and when to wake to renew the DHCP lease and
> avoid
> disrupting the connection. These statistics will also be useful for
> users
> attempting to diagnose dhcp issues on their networks.
It sounds as there is some kind of a "sleep daemon" in the system that
is triggering system sleep. Can you elaborate more on the sleep
functionality and use cases of the system in question?
If kernel and wpa_supplicant are suspended, the device will drop off
from the WiFi network after a timeout, and at that point there is
nothing to restore when DHCP should be reacquired. A suspend on a normal
Linux laptop will drop the connections before going to suspend so
ConnMan needs to do a full reconnect on wakeup. Also, if the device or
network moves away, there is nothing to restore either. How are these
issues taken into account?
Cheers,
Patrik
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman