Am Donnerstag 28 Mai 2009 18:29:55 schrieb hyc(a)openldap.org:
Full_Name: Howard Chu
Submission from: (NULL) (220.127.116.11)
Submitted by: hyc
Some ideas that came out of discussions at the Ubuntu Developer Summit this
It would be nice for pcache to detect when connectivity to the remote
server has been lost. In that case, cache expiration should be stopped, and
the cache contents should remain intact until connectivity is restored.
sound reasonable. It's probably also worth to think about a mechanism
to explicitly set pcache to "offline" mode. That way on a client machine a
hook could be provided for e.g. NetworkManager to bring pcache to offline mode
immediately when the network goes offline.
That mechanism could either be offered through back-config (back-monitor as
for readonly?) and/or through the nssov Socket as that would most probably be
the main user of this disconnected pcache mode.
Also, when connectivity is restored, pcache should explicitly refresh
the entries it currently holds, rather than allowing them to be immediately