diff options
author | Joey Hess <joey@kitenet.net> | 2013-03-06 15:09:31 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-03-06 15:09:31 -0400 |
commit | 49b88039e597ec761227d00ddf125f8ebe5c6a4f (patch) | |
tree | 660cbf757c53229b12629f0da29a0d405a95bed2 /doc/design/assistant/xmpp.mdwn | |
parent | 32743077f40eeb21eb3fc230c1d2a46b1b1181e4 (diff) |
assistant: Get back in sync with XMPP remotes after network reconnection, and on startup.
Make manualPull send push requests over XMPP.
When reconnecting with remotes, those that are XMPP remotes cannot
immediately be pulled from and scanned, so instead maintain a set of
(probably) desynced remotes, and put XMPP remotes on it. (This set could be
used in other ways later, if we can detect we're out of sync with other
types of remotes.)
The merger handles detecting when a XMPP push is received from a desynced
remote, and triggers a scan then, if they have in fact diverged.
This has one known bug: A single XMPP remote can have multiple clients
behind it. When this happens, only the UUID of one client is recorded
as the UUID of the XMPP remote. Pushes from the other XMPP clients will not
trigger a scan. If the client whose UUID is expected responds to the push
request, it'll work, but when that client is offline, we're SOL.
Diffstat (limited to 'doc/design/assistant/xmpp.mdwn')
-rw-r--r-- | doc/design/assistant/xmpp.mdwn | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/doc/design/assistant/xmpp.mdwn b/doc/design/assistant/xmpp.mdwn index 1c40aa102..fed79527e 100644 --- a/doc/design/assistant/xmpp.mdwn +++ b/doc/design/assistant/xmpp.mdwn @@ -9,8 +9,6 @@ who share a repository, that is stored in the [[cloud]]. * Do git-annex clients sharing an account with regular clients cause confusing things to happen? See <http://git-annex.branchable.com/design/assistant/blog/day_114__xmpp/#comment-aaba579f92cb452caf26ac53071a6788> -* Assistant.Sync.manualPull doesn't handle XMPP remotes yet. - This is needed to handle getting back in sync after reconnection. * Support use of a single XMPP account with several separate and independant git-annex repos. This probably works for the simple push notification use of XMPP, since unknown UUIDs will just be ignored. |