]> dgit.raspbian.org Git - git-annex.git/commit
version the P2P protocol
authorJoey Hess <joeyh@joeyh.name>
Mon, 12 Mar 2018 17:43:19 +0000 (13:43 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 12 Mar 2018 18:36:35 +0000 (14:36 -0400)
commitc81768d425725f868ddf23333d49eed0f3fda011
tree117718761c20de0385fc18b3631c7159ae0122c7
parent5ae103e09a63921afd907adc7d448e357dc094fc
version the P2P protocol

Unfortunately ReceiveMessage didn't handle unknown messages the way it
was documented to; client sending VERSION would cause the server to
return an ERROR and hang up. Fixed that, but old releases of git-annex
use the P2P protocol for tor and will still have that behavior.

So, version is not negotiated for Remote.P2P connections, only for
Remote.Git connections, which will support VERSION from their first
release. There will need to be a later flag day to change Remote.P2P;
left a commented out line that is the only thing that will need to be
changed then.

Version 1 of the P2P protocol is not implemented yet, but updated
the docs for the DATA change that will be allowed by that version.

This commit was sponsored by Jeff Goeke-Smith on Patreon.
CmdLine/GitRemoteTorAnnex.hs
Command/P2P.hs
Command/P2PStdIO.hs
P2P/Annex.hs
P2P/IO.hs
P2P/Protocol.hs
Remote/Helper/Ssh.hs
Remote/P2P.hs
RemoteDaemon/Transport/Tor.hs
doc/design/p2p_protocol.mdwn
doc/todo/accellerate_ssh_remotes_with_git-annex-shell_mass_protocol.mdwn