Replies: 1 comment 2 replies
-
I'm not really sure what is included to support such requests, but if the server supports range requests, then, in theory, you'd be able to use that to resume a download: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#range_requests |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wrote an async function to download a propetary binary file like so:
Sometimes, the client crashes due to "asyncio.TimeoutError". So I tried to increase the timeout of the GET request for each file downloaded by this function but I wonder if I can design this better. To date, I create an async session and I run n-th async tasks with this function to download all required files in parallel. Some are small, others are very large. Is there a way to download what is left of file when some error occurs?
Beta Was this translation helpful? Give feedback.
All reactions