-
Notifications
You must be signed in to change notification settings - Fork 7
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
Abort and restart curl download if speed too slow and/or fails #90
Comments
This was referenced Apr 29, 2021
6 tasks
Another error:
where "18" is an exit code meaning:
|
14 tasks
anthonyfok
added a commit
to anthonyfok/opendrr-api
that referenced
this issue
May 24, 2022
Specify --retry-all-errors so that curl does "give up" so easily and would actually retry on connection reset errors like this: curl: (56) OpenSSL SSL_read: Connection reset by peer, errno 104 Command exited with non-zero status 56 Also specify "--retry-delay 5" to disable curl's exponential backoff algorithm (which could make retries as far as 10 minutes apart), and specify "--retry 360" to stop retrying after 15 minutes. See OpenDRR#90
anthonyfok
added a commit
to anthonyfok/opendrr-api
that referenced
this issue
May 24, 2022
Specify --retry-all-errors so that curl does "give up" so easily and would actually retry on connection reset errors like this: curl: (56) OpenSSL SSL_read: Connection reset by peer, errno 104 Command exited with non-zero status 56 Also specify "--retry-delay 5" to disable curl's exponential backoff algorithm (which could make retries as far as 10 minutes apart), and specify "--retry 360" to stop retrying after 30 minutes. See OpenDRR#90
anthonyfok
added a commit
that referenced
this issue
May 24, 2022
Specify --retry-all-errors so that curl does "give up" so easily and would actually retry on connection reset errors like this: curl: (56) OpenSSL SSL_read: Connection reset by peer, errno 104 Command exited with non-zero status 56 Also specify "--retry-delay 5" to disable curl's exponential backoff algorithm (which could make retries as far as 10 minutes apart), and specify "--retry 360" to stop retrying after 30 minutes. See #90
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My most recent test run of
docker-composer up --build
got stuck whencurl
tries to fetch social-vulnerability/social-vulnerability-census_2021.csv. The download became extremely slow at around 3.5MB of the 248MB file, with download speed of 9559 B/s and an estimated total download time of up to whopping 24 hours?!But it eventually timed out, supposedly because the token used for download expired. Very strange indeed.
The download command at the time was:
I was able to run the same command manually elsewhere, and had the file downloaded rather quickly, multiple times even, until the token expired supposedly. The curl instance inside the Docker container never sped up though and eventually died.
So, may need to do too things:
-Y
and-y
options. (?) See https://stackoverflow.com/questions/3756614/curl-abort-transfer-if-upload-speed-is-slower-than and https://daniel.haxx.se/blog/2020/05/11/curl-ootw-y-speed-limit/Perhaps look at
--connect-timeout
and-C
too?See Meta Issue #76, and related issues #66 (retries), #83 (verify checksum).
The text was updated successfully, but these errors were encountered: