-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support HTTP range requests for downloading artifacts #31
Comments
Dropshot doesn't have much to support this, but it is possible; I added an example in oxidecomputer/dropshot#776. |
As of 3a2cc1b we now support HTTP range requests on published file downloads. I have done some relatively extensive testing at this point, and I think it's actually working. For example, this horrendous shell script: #!/bin/bash
R=oxidecomputer/omicron
C=b4e1a285ef812bc0376959e177c7ab3f90893e73
B=https://buildomat.eng.oxide.computer/public/file/$R/rot-all/$C/repo.zip
rm -f repo.zip.parta
rm -f repo.zip.partb
rm -f repo.zip.sha256.txt
curl -o repo.zip.sha256.txt "$B.sha256.txt"
for p in a b; do
while ! curl -Y 10000000 -y 8 -C - -o "repo.zip.part$p" "$B.part$p"; do
sleep 0.1
done
done
echo "want: $(<repo.zip.sha256.txt)"
echo "got: $(cat repo.zip.parta repo.zip.partb | digest -a sha256)" Has this output:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tried to resume downloading a published artifact that was only partially downloaded using
-C -
withcurl
but instead got:The text was updated successfully, but these errors were encountered: