p2phttp: notice when new repositories are added to --directory
authorJoey Hess <joeyh@joeyh.name>
Thu, 21 Nov 2024 19:09:12 +0000 (15:09 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 21 Nov 2024 19:09:12 +0000 (15:09 -0400)
commit4c785c338a64a36846d59d01fbdc5ca783f33add
tree02482a08211ef20ae7fef3eb14a64038e9320084
parent758ea89c742a1cb295659bc7172f7583a03ffee4
p2phttp: notice when new repositories are added to --directory

When a uuid is not known, rescan for new repositories. Easy.

When a repository is removed, it will also get removed from the server
state on the next scan. But until a new uuid is seen, there will not be
a scan. This leaves the server trying to serve a uuid whose repository
is gone. That seems buggy. While getting just fails, dropping fails the
first time, but seems to leave the server in an unusable state, so the
next drop attempt hangs. The server is still able to serve other uuids,
only the one whose repository was removed has that problem.
CHANGELOG
Command/P2PHttp.hs
P2P/Http/Server.hs
P2P/Http/State.hs