fix slowloris timeout in hashing resume of download of large file

Hash the data that is already present in the file before connecting to
the http server.
This commit is contained in:
Joey Hess 2024-07-24 11:03:59 -04:00
parent 0594338a78
commit 10f2c23fd7
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 33 additions and 36 deletions

View file

@ -28,13 +28,6 @@ Planned schedule of work:
## work notes
* Test resume of download of large file when large amount of file is
already downloaded and verification takes a long time. Will the http
connection be dropped due to inactivity? May need to do verification in a
separate thread that feeds in the existing file followed by the newly
downloaded data. Eg, a version of tailVerify that operates on a handle
open for read+write.
* Rest of Remote.Git needs implementing.
* git-annex p2phttp serving .well-known for ACME.