A Python question regarding large file transfers over HTTP
Here's a cleaned version of what I currently have: https://pastebin.com/Tpgqrvdi
A Python question regarding large file transfers over HTTP
@drewfer kind of: it worked for one file, then failed badly on another one and was still downloading and writing when the file on-disk was twice the size of the file being retrieved from the server...
A Python question regarding large file transfers over HTTP
@spinflip can you share the code?
A Python question regarding large file transfers over HTTP
@drewfer Sure! here: https://pastebin.com/JmNG2s7B
A Python question regarding large file transfers over HTTP
@spinflip The tdqm_notebook is probably calling the request multiple times with the same range header. You're going to have to build an iterator around iter_content() that updates the Range header when the underlying connection closes and then pass that to the notebook.
A Python question regarding large file transfers over HTTP
@spinflip Did you get the resume working? It might be worth looking into Twisted and the ReconnectingClientFactory.