git-annex/RemoteDaemon
Joey Hess c81768d425
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.
2018-03-12 14:36:35 -04:00
..
Transport version the P2P protocol 2018-03-12 14:36:35 -04:00
Common.hs Added remote.<name>.annex-push and remote.<name>.annex-pull 2017-04-05 13:22:35 -04:00
Core.hs Improve startup time for commands that do not operate on remotes 2018-01-09 16:22:07 -04:00
Transport.hs remotedaemon: notice on RELOAD when tor hidden service has been enabled 2016-12-28 12:21:52 -04:00
Types.hs remotedaemon: notice on RELOAD when tor hidden service has been enabled 2016-12-28 12:21:52 -04:00