erickutcher / httpdownloader

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

[Bug] Stuck on allocating if there is not enough space #163

Closed char101 closed 3 years ago

char101 commented 3 years ago

Hi,

When using a temporary directory to download, and there is not enough space in the temporary directory, the download item is stuck in the "allocating" status, and there is no way to restart the download (after freeing the space in the temporary directory) because the restart menu item is disabled.

erickutcher commented 3 years ago

I'm surprised there was no IO error during allocation. I'm thinking I could detect the free space on the disk and prevent the download from continuing. The download's status could be changed to "Insufficient Disk Space".

erickutcher commented 3 years ago

Here's a preview you can try. HTTP_Downloader.zip The settings will be reset in this version.

char101 commented 3 years ago

Thanks, I have tested it by allocating a large file using fsutil file createnew to make the temporary directory full, and now http downloader shows allocation failed status.

erickutcher commented 3 years ago

A new version is up.