git-annex/RemoteDaemon
Joey Hess f1781d01d8
remotedaemon support for generic P2P transports
RemoteDaemon.Transport.Tor was refactored into this, and most of the
code is reused between them.

getSocketFile does not yet deal with repositories on crippled
filesystems that don't support sockets. Annex.Ssh detects that and
allows the user to set an environment variable, and something similar
could be done here.

And it does not deal with a situation where there is no path to the
socket file that is not too long. In that situation it would crash out
I suppose. Probably though, remotedaemon is ran from the top of the
repo, and in that case the path is just ".git/annex/p2p/<md5>" so nice
and short.

This seems to mostly work. But I don't yet have a working git-annex-p2p-
command to test it with.

And with my not quite working git-annex-p2p-foo test script, running
remotedaemon results in an ever-growing number of zombie processes
that it's not waiting on.
2025-07-31 14:45:32 -04:00
..
Transport remotedaemon support for generic P2P transports 2025-07-31 14:45:32 -04:00
Common.hs Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
Core.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
Transport.hs remotedaemon support for generic P2P transports 2025-07-31 14:45:32 -04:00
Types.hs remove unused import 2023-08-28 12:35:57 -04:00