fix PUT to http proxied special remote

It was hanging because it never sent FAILURE in the INVALID case.
And putoffset always triggers the INVALID case.
This commit is contained in:
Joey Hess 2024-07-28 09:14:42 -04:00
parent 0ea645944e
commit ef8f24f28c
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 3 additions and 6 deletions

View file

@ -175,7 +175,7 @@ proxySpecialRemote protoversion r ihdl ohdl owaitv endv = go
Just (VALIDITY Valid) ->
store
Just (VALIDITY Invalid) ->
return ()
liftIO $ sendmessage FAILURE
_ -> giveup "protocol error"
else store
_ -> giveup "protocol error"

View file

@ -28,11 +28,8 @@ Planned schedule of work:
## work notes
* test http server proxying with special remotes
git-annex get --from origin-d works
git-annex drop --from origin-d works
git-annex copy --to origin-d HANGS
* shut down of a connection to a http proxied special remote may not work
properly
* Make http server support clusters.