assistant: XMPP git pull and push requests are cached and sent when presence of a new client is detected.

Noticed that, At startup or network reconnect, git push messages were sent,
often before presence info has been gathered, so were not sent to any
buddies.

To fix this, keep track of which buddies have seen such messages,
and when new presence is received from a buddy that has not yet seen it,
resend.

This is done only for push initiation messages, so very little data needs
to be stored.
This commit is contained in:
Joey Hess 2013-03-06 21:33:08 -04:00
parent d76e281de0
commit c16adc25c4
5 changed files with 106 additions and 20 deletions

2
debian/changelog vendored
View file

@ -27,6 +27,8 @@ git-annex (4.20130228) UNRELEASED; urgency=low
may do undesired things with it.
* assistant: Get back in sync with XMPP remotes after network reconnection,
and on startup.
* assistant: XMPP git pull and push requests are cached and sent when
presence of a new client is detected.
-- Joey Hess <joeyh@debian.org> Wed, 27 Feb 2013 23:20:40 -0400