erickutcher / httpdownloader

HTTP(S) download manager that uses input/output completion ports (IOCP).
https://erickutcher.github.io/#HTTP_Downloader
571 stars 61 forks source link

Some files get stopped at 99% or 98% #57

Open rayman3003 opened 5 years ago

rayman3003 commented 5 years ago

For some files, the downloads get stopped at 99% or 98%; And I must stop-start them for so many times to make them 100%!

Here r some example links that get stopped at 99% or 98%:

https://0bin.net/paste/fZhj5f4h1tBjqyCJ#-7xMp5BRuLgoWGLTxwgzRm/p+dM6oIMoSVKxqG0ktyl

2 more examples from another servers:

https://0bin.net/paste/xpBQDCv9-l8TCq2W#nKzStsZxOHQ3DtDcn3E-fY8mmHseFm+CN7pefHhVBBf

So its not a problem from the the servers, but for the HTTP Downloader.

I tried downloading these files with another download manger without any stuck on 99%

smaragdus commented 5 years ago

@rayman3003

I downloaded the first two files (RAR & APK) without any troubles.

rayman3003 commented 5 years ago

@rayman3003

I downloaded the first two files (RAR & APK) without any troubles.

I don't know. But I tried to download 70 links yesterday with HTTP Downloader from different websites. And most (not all) of the links from this server, stopped at 99% or 98%.

smaragdus commented 5 years ago

@rayman3003

I don't know either what might be the problem, perhaps a temporary server issue? I managed to download 2 out of 2 files successfully (the downloads did not stuck at 98% or at 99%) although I noticed that the download speed was slow. Did you try to pause/resume these failed downloads? Anyway, I suppose that the developer would be able to privide a better answer.

rayman3003 commented 5 years ago

I don't know either what might be the problem, perhaps a temporary server issue? I managed to download 2 out of 2 files successfully (the downloads did not stuck at 98% or at 99%) although I noticed that the download speed was slow. Did you try to pause/resume these failed downloads? Anyway, I suppose that the developer would be able to privide a better answer.

Pausing & resuming (start), won't help. Only stopping & starting would finish the download. (some times I must stop & start so many times to finish the download!)

Here is 2 more links from another servers that also get stucked before reaching 100%:

https://0bin.net/paste/xpBQDCv9-l8TCq2W#nKzStsZxOHQ3DtDcn3E-fY8mmHseFm+CN7pefHhVBBf

I tried downloading these files with another download manger without any stuck on 99%

erickutcher commented 5 years ago

Some of those servers only allow one connection, but they also report that they support partial content requests. So the server is in conflict with the program. If HTTP Downloader gets a reply from the server that it supports partial content (HTTP status 206), then it'll attempt to split the requests into however many parts (connections) was set in the options. The problem here is that every connection after the first will get closed and it'll only end up downloading a single part at a time. When that part finishes the others will still be incomplete and the download will stop. By default, though, HTTP Downloader will attempt to retry incomplete downloads two more times. After that, it won't try anymore. And that's why you're not getting 100% completion.

The solution for the downloads above is to set the number of parts to 1. You could also increase the retry limits in the Connection options, but that'll just hammer the server. Another thing you can do if you've already downloaded most of the file and don't want to restart it is to right click on the download in the download list and selected "Update Download...". From here you can lower the "Download parts" to an appropriate amount.

rayman3003 commented 5 years ago

The solution for the downloads above is to set the number of parts to 1. You could also increase the retry limits in the Connection options, but that'll just hammer the server. Another thing you can do if you've already downloaded most of the file and don't want to restart it is to right click on the download in the download list and selected "Update Download...". From here you can lower the "Download parts" to an appropriate amount.

Thank u. I increased the number of retries & it seems get better now.