better handling of content not available from cluster
authorJoey Hess <joeyh@joeyh.name>
Sun, 28 Jul 2024 15:09:07 +0000 (11:09 -0400)
committerJoey Hess <joeyh@joeyh.name>
Sun, 28 Jul 2024 15:09:07 +0000 (11:09 -0400)
commit4304f1b6aea19a5c402dc4f9d69aa4ff1c104c9b
tree327cc30ee970991dfdae2f41d3e32f1e0133a26f
parentfbbedae4972d60d3481095cb88268d096b397bf1
better handling of content not available from cluster

Sending ERROR caused the client to get confused and protocol to freeze.
Better to send empty DATA and indicate it's not valid.

This fixes a hang in git-annex testremote of a cluster accessed via the
http server. That testremote is still failing, for some reason after
storing a test key, the cluster reports it as not present.
P2P/Proxy.hs