Hello, I have a question regarding your latest work:
If user changes "TimeUpdates" to "manual" will the NTP sync be stopped? If yes, then when user sets "TimeUpdates" to "auto", will NTP sync be restarted? Regards ~Sameer On Wed, Mar 21, 2012 at 4:38 PM, Alok Barsode <[email protected]> wrote: > From: Alok Barsode <[email protected]> > > Hi, > > The following set of patches rectify NTP behaviour. Here is the list > of modifications/additions done. > > Patch1: Modify the behaviour of global timeservers. We now replace the > older global timeservers with the new ones, instead of appending. > Fixes bug #24997. > > Patch2: Instead of triggering NTP sync only on ONLINE state we trigger > it when the default service changes. We also stop NTP sync when there > is no default service, rather than when we are in DiSCONNECT state.This > is helpful in a local ntp server setup, where we do not need to go ONLINE > for a ntp sync. > > Patch3-6: Add Timeservers.Configuration Property to the service. We can > override system timeservers using this property. Timeserver sync creates > a list of timeservers to query, which consists of Timeservers.Configuration, > service timeservers (via dhcp), the gateway and then the global timeservers, > in that order. If any of these values changes, the timeserver sync is > reinvoked. > > patch:7-8: Add the Timeserves.Configuration documentation and unit test. > > patch:9: Trigger timeserver sync when the user sets the timezone. > > patch10: Reduce the NTP server failuer timer from 16 to 5 seconds. > If the current ntp sync fails, connman waits for 16 seconds untill it > tries the next server. shorteing this delay makes sense in the case of > timezone settings, as the user does not have to wait for a long time (16 sec) > for the timing updates, if the current NTP server fails. > > > Cheers, > Alok. > > Alok Barsode (10): > timeserver: Replace older system timeserver values with new ones > instead of appending > timeserver: Trigger ntp on default changed notifier > timeserver: Create timeserver list > timeserver: Add service gateway to timeserver list > service: Add Timeservers.Configuration Property. > timeserver: Add Timeservers.Configuration to timeserver list > doc: Add Timeserves.Configuration service property > test: Add set-timeservers > clock: Sync timeserver after timezone change > ntp: Shorten NTP failure delay > > doc/service-api.txt | 15 +++ > include/service.h | 1 + > include/timeserver.h | 3 +- > plugins/meego.c | 4 +- > src/clock.c | 18 +++- > src/connman.h | 1 - > src/ntp.c | 4 +- > src/service.c | 72 +++++++++++- > src/timeserver.c | 309 > +++++++++++++++++++++++++------------------------- > test/set-timeservers | 20 ++++ > 10 files changed, 277 insertions(+), 170 deletions(-) > create mode 100755 test/set-timeservers > > -- > 1.7.5.4 > > _______________________________________________ > connman mailing list > [email protected] > http://lists.connman.net/listinfo/connman _______________________________________________ connman mailing list [email protected] http://lists.connman.net/listinfo/connman
