incremental verification for web special remote
authorJoey Hess <joeyh@joeyh.name>
Wed, 18 Aug 2021 18:49:01 +0000 (14:49 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 18 Aug 2021 19:02:22 +0000 (15:02 -0400)
commitd154e7022e231400018ef35d493f4db610db0638
tree2d3b90cb4e6bb4ec91de9284d85c7c685edd0adf
parent88b63a43fa57ff26a1fed4367888305a637e3646
incremental verification for web special remote

Except when configuration makes curl be used. It did not seem worth
trying to tail the file when curl is downloading.

But when an interrupted download is resumed, it does not read the whole
existing file to hash it. Same reason discussed in
commit 7eb3742e4b76d1d7a487c2c53bf25cda4ee5df43; that could take a long
time with no progress being displayed. And also there's an open http
request, which needs to be consumed; taking a long time to hash the file
might cause it to time out.

Also in passing implemented it for git and external special remotes when
downloading from the web. Several others like S3 are within striking
distance now as well.

Sponsored-by: Dartmouth College's DANDI project
15 files changed:
Annex/Content.hs
Annex/Url.hs
Assistant/Upgrade.hs
CHANGELOG
Command/AddUrl.hs
Command/ImportFeed.hs
Remote/BitTorrent.hs
Remote/External.hs
Remote/Git.hs
Remote/GitLFS.hs
Remote/HttpAlso.hs
Remote/S3.hs
Remote/Web.hs
Utility/Url.hs
doc/todo/OPT__58_____34__bundle__34___get_+_check___40__of_checksum__41___in_a_single_operation/comment_16_fbbcf1d8b35078274cfe322cea6de21c._comment