Joey Hess
3f2467f253
increase chunk size
...
XMPP has no defined message size limits, but some servers will have ad-hoc
limits. However, 4k seems safe, even after the additional bloat of base64.
That should not exceed 8k.
2012-11-09 23:21:51 -04:00
Joey Hess
4a5e758a5a
refactor
2012-11-09 23:17:47 -04:00
Joey Hess
6174c748af
refactor
2012-11-09 23:12:54 -04:00
Joey Hess
62fa648455
xmpp git push is working!
...
Various final bug fixes, and tweaks that got it working.
Currently pushes a hardcoded ref, which needs to be fixed, etc.
2012-11-09 17:40:59 -04:00
Joey Hess
47c032a748
run xmpp push actions in separate thread from xmpp client
...
Took me a while to figure out why the xmpp client was not receiving git xmpp
push messages after a push started.
2012-11-09 16:04:55 -04:00
Joey Hess
232b61e946
fix git push startup
2012-11-09 15:03:16 -04:00
Joey Hess
13547aa659
add canpush xmpp command
2012-11-09 14:34:06 -04:00
Joey Hess
82ccb385e3
use xmpp::user@host for xmpp remotes
...
Inject the required git-remote-xmpp into PATH when running xmpp git push.
Rest of the time it will not be in PATH, and git won't be able to talk to
xmpp remotes.
2012-11-09 13:35:23 -04:00
Joey Hess
fb3b9412e4
xmpp push control flow
...
It might even work, although nothing yet triggers XMPP pushes.
Also added a set of deferred push messages. Only one push can run at a
time, and unrelated push messages get deferred. The set will never grow
very large, because it only puts two types of messages in there, that
can only vary in the client doing the push.
2012-11-08 16:46:29 -04:00
Joey Hess
0238e4ba07
hooked up XMPP git push send/receive (but not yet control flow)
2012-11-08 14:04:41 -04:00
Joey Hess
af44b7ec15
built IO side of xmppReceivePack
2012-11-06 16:36:44 -04:00
Joey Hess
f6bcab3f57
cleanup
2012-11-06 16:08:36 -04:00
Joey Hess
dbbd65e035
note
2012-11-06 15:57:18 -04:00
Joey Hess
33d2c05665
implemented IO side of xmppPush; xmpp side still todo
2012-11-06 10:54:12 -04:00
Joey Hess
68a5c98acc
xmppgit now actually works
...
But I could not find a way to implement it using just FD piping; it
has to copy the data.
2012-11-06 10:14:00 -04:00
Joey Hess
cb7523b9e8
add xmppgit command; roughed out xmpp push protocol and design
2012-11-06 00:59:20 -04:00
Joey Hess
da6fb44446
finished XMPP pairing!
...
This includes keeping track of which buddies we're pairing with, to know
which PairAck are legitimate.
2012-11-05 17:43:17 -04:00
Joey Hess
db36b11e28
switch to silent chat messages for XMPP pairing
...
Along the way, significantly cleaned up Assistant.XMPP, and made XMPP
message decoding more efficient.
2012-11-05 15:40:56 -04:00
Joey Hess
a6cecfcf33
workaround for Google Talk's insane handling of self-directed presence
...
Maybe the spec allows it, but broadcasting self-directed presence info to
all buddies is just insane.
I had to bring back the IQ messages for self-pairing, while still using
directed presence for other pairing. Ugly.
2012-11-03 22:52:41 -04:00
Joey Hess
21a287a0b3
rename xmpp creds file
...
it's not just about push notifications anymore
2012-11-03 18:58:37 -04:00
Joey Hess
42f030c905
XMPP pair requests are now received, and an alert displayed
2012-11-03 17:46:22 -04:00
Joey Hess
b95c255b6d
XMPP pairing notifications are now sent
...
Rest of pairing process still to do.
2012-11-03 16:01:09 -04:00
Joey Hess
a6d15938ab
fix marking git-annex clients away when they disconnect
2012-11-02 21:36:26 -04:00
Joey Hess
6a61829e2d
add buddy list to pairing UI
2012-11-02 21:13:06 -04:00
Joey Hess
2ae43e71e0
xmpp buddy list tracking
2012-11-02 14:28:36 -04:00