]> dgit.raspbian.org Git - git-annex.git/commit
support a P2PConnection that uses TMVars rather than Handles
authorJoey Hess <joeyh@joeyh.name>
Fri, 28 Jun 2024 15:22:29 +0000 (11:22 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 28 Jun 2024 15:22:29 +0000 (11:22 -0400)
commitc3a785204e832cc94fb89dcb047c77867b2c4c16
tree70da160083d4a2edf5d23bc1d7a5c27e669fda67
parent28f5c47b5a0daf96e5ed9aa719ff1e2763d3cc8b
support a P2PConnection that uses TMVars rather than Handles

This will allow having an internal thread speaking P2P protocol,
which will be needed to support proxying to external special remotes.

No serialization is done on the internal P2P protocol of course.

When a ByteString is being exchanged, it may or may not be exactly
the length indicated by DATA. While that has to be carefully managed
for the serialized P2P protocol, here it would require buffering the
whole lazy bytestring in memory to check its length when sending,
so it's better to do length checks on the receiving side.
Command/EnableTor.hs
Command/P2PStdIO.hs
P2P/IO.hs
Remote/Helper/Ssh.hs
RemoteDaemon/Transport/Tor.hs