implemented servePutOffset and clientPutOffset
authorJoey Hess <joeyh@joeyh.name>
Mon, 22 Jul 2024 19:02:08 +0000 (15:02 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 22 Jul 2024 19:04:10 +0000 (15:04 -0400)
commit3069e28dd8c7243e08372688bef563b436a283ed
tree85ab4d746d39d48e2d9f5ccb1b6486b89336260c
parentc36b9cd1fc8d94bcd607301dd3d2e7f8cb841648
implemented servePutOffset and clientPutOffset

But, it's buggy: the server hangs without processing the VALIDITY,
and I can't seem to work out why. As far as I can see, storefile
is getting as far as running the validitycheck, which is supposed to
read that, but never does.

This is especially strange because what seems like the same protocol
doesn't hang when servePut runs it. This made me think that it needed
to use inAnnexWorker to be more like servePut, but that didn't help.

Another small problem with this is that it does create an empty
.git/annex/tmp/ file for the key. Since this will usually be used in
combination with servePut, that doesn't seem worth worrying about much.
Command/P2PHttp.hs
P2P/Http.hs
P2P/Http/Types.hs
P2P/Protocol.hs
doc/design/p2p_protocol_over_http/draft1.mdwn
doc/todo/git-annex_proxies.mdwn