Skip to content
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

[Bug] When pool/threads/limit > 1, download will stuck. #647

Open
Lilacist opened this issue Jun 13, 2024 · 0 comments
Open

[Bug] When pool/threads/limit > 1, download will stuck. #647

Lilacist opened this issue Jun 13, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Lilacist
Copy link

Lilacist commented Jun 13, 2024

Describe the bug

when i use the default config or manually set pool/threads/limit above 1,the download progress will stuck after about 30 seconds or longer, only "--pool 1 --threads 1 --limit 1" can work, but also unstable,sometime it will abort a file download and start a new file download,if it happen,there will be lots of task on my screen with the taskbar freeze.Even though I set the limit to 1.
I turned on the debug and saved the log.I will put it in Additional context.
Please help me.Thanks a lot.

To Reproduce

1.Run the program with default config.
2.It stuck after several seconds,and the speed continued declining.
微信图片_20240614002126
3.Set the config to "--pool 1 --threads 1 --limit 1", it works.

4.But sometimes even though i set "--pool 1 --threads 1 --limit 1",the download progress of a file will be aborted,and the taskbar freezes,the program will start to download another file,then abort,then start another. The suspended task will not disappear. So at last here will be so much tasks on my screen ,but will never continue , left a broken file in my download directory.
(Notice that I have set pool/threads/limits to only 1 )
微信图片_20240614030523

Expected behavior

It should download files normally.
And maybe we need a file check after download or before start a new download.

Version

Version: 0.17.1
Commit: 7f4e543
Date: 2024-05-29T14:50:17Z

go1.21.10 windows/amd64

Which OS are you running tdl on?

Windows

Additional context

set pool/threads/limit above 1 and stuck log
https://github.com/Lilacist/logs/blob/main/stuck.log

set pool/threads/limit to only 1 but aborted and file broken log
https://github.com/Lilacist/logs/blob/main/latest.log

@Lilacist Lilacist added the bug Something isn't working label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants