git-annex/P2P
Joey Hess ad025b8e5e
clean up protocol version for proxying
The proxy always checks the protocol version of a remote before talking
to it in a version-specific way, so the protocol version in the ProxyParams
is the client's protocol version. The remote will always be at the same or
an older protocol version than the client.

Note that in relayDATAFinish, when the client is at protocol version 0,
the remote must thus be as well, and that's why its version is not
checked in the case for that.

With that clarified, it's evident that, in P2P.Http.State, there's no
need to look at the proxied remote's protocol version at all.
2024-07-26 13:49:05 -04:00
..
Http clean up protocol version for proxying 2024-07-26 13:49:05 -04:00
Address.hs Windows: Support long filenames in more (possibly all) of the code 2023-03-01 15:55:58 -04:00
Annex.hs Remote.Git retrieveKeyFile works with annex+http urls 2024-07-24 10:28:44 -04:00
Auth.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Http.hs add common parameters to generic get API 2024-07-24 20:55:58 -04:00
IO.hs http p2p proxy is now largely working 2024-07-26 10:44:10 -04:00
Protocol.hs fix setting protocol version for v0 server 2024-07-26 13:24:56 -04:00
Proxy.hs clean up protocol version for proxying 2024-07-26 13:49:05 -04:00