remove temp file after upload to special remote

This commit is contained in:
Joey Hess 2024-07-28 14:36:45 -04:00
parent 9461793ffc
commit 66679c9bb4
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 4 additions and 0 deletions

View file

@ -179,6 +179,7 @@ proxySpecialRemote protoversion r ihdl ohdl owaitv endv = go
_ -> giveup "protocol error"
else store
_ -> giveup "protocol error"
liftIO $ removeWhenExistsWith removeFile (fromRawFilePath tmpfile)
proxyget offset af k = withproxytmpfile k $ \tmpfile -> do
-- Don't verify the content from the remote,

View file

@ -28,6 +28,9 @@ Planned schedule of work:
## work notes
* testremote hangs at PUT to on a cluster accessed over http that
has a node that is a directory special remote.
* When part of a file has been sent to a cluster via the http server,
the transfer interrupted, and another node is added to the cluster,
and the transfer of the file performed again, there is a failure