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
How can I resume downloads? #490
Comments
from wget documentation
|
Sorry but I'm always putting "wget -c url" and what's wrong with that |
I'm sorry @niss88, you are right I will fix as soon as I have time |
My downloading file was a video... but I'll wait either way. For testing I uploaded mp4 file for example https://transfer.sh/KnDl1c/out3.mp4 (~1 MB), tested like below and --continue (-c) didn't work for mp4 file
|
hello @niss88 after some tests I can confirm that the code handles download resume on video and audio file (we could change for every file type, but that's no related to your problem) failure on download resume at https://transfer.sh could be due to a proxy that doesn't forward the range header (it was indeed the same on my private instance): @stefanbenten , can you validate this assumption? in case of nginx I had to add the |
filtering out |
transfer.sh is currently running with nginx in front and the correct proxy pass directive added. That said, it has a timeout at 1800s per request, due to the fact that there have been HTTP slow attacks in the past. |
@stefanbenten |
I think i have an idea why it is not working correctly. Lemme debug the code (because the proxy forwards it correctly) and put up a PR. |
This is also affecting parallel download tools (tools that connect to the server multiple times and download segments of the file in each thread). It makes a |
@ErrorNoInternet did you hit this issue with can you tell me one of the parallel download tools that are affected? I will check if everything is fine on the For sure |
The https://transfer.sh website
Some examples are Paralload (my own tool), Chrome (it has a multi-threaded download feature), chunked-downloader, and a few more small tools. |
this is related to the support on hosted instances like https://transfer.sh, might or might nor support this according to the presence of a proxy and its setup |
indeed it's a rather tricky: we have a mutex on transfer.sh/server/handlers.go Lines 689 to 690 in 35e7942
MaxDownloads and update them
parallel range requests will be handled sequentially anyway because of the mutex. keeping track of all the requested ranges to understand when a full donwload happened is a no way to go, since there are a lot of cases where range requests are not a parallel download (seeking in a multimedia content for example) skipping the lock if the upload doesn't contain
|
@ErrorNoInternet here: #495 |
@niss88 allowing parallel range request showed to be more complicated than I initially thought, especially regarding performance impact. I will reserve to go back to the issue once I'll have more time for it |
I'm downloading from transfer.sh url like wget -c "https://transfer.sh/..." but in the middle way an error occurs stating that "...バイトで読み込みエラーが発生しました (Operation timed out)。 再試行しています。".
Then it restarts downloading but from the scratch (progress bar starts from 0%). I read this #289 but didn't get the solution.
The text was updated successfully, but these errors were encountered: