Skip to content

Fix anti-stuck not working when there was zero progress#364

Merged
Shivansps merged 2 commits intoKnossosNET:mainfrom
Shivansps:fix-antistuck
Mar 29, 2026
Merged

Fix anti-stuck not working when there was zero progress#364
Shivansps merged 2 commits intoKnossosNET:mainfrom
Shivansps:fix-antistuck

Conversation

@Shivansps
Copy link
Copy Markdown
Member

When there was zero progress the do/while loop during http file read and disk write would get stuck on await contentStream.ReadAsync(buffer); as it seems to never timeout. Also preventing manual mirror changes.

A cancellation token is added when the anti stuck is on causing the remote file read (of size = buffer size, 262144) to cancel if it takes longer than ANTI_STUCK_CHECK_SECONDS

@Shivansps Shivansps added the fix Fix for a bug label Mar 29, 2026
@Shivansps Shivansps merged commit 2970bd5 into KnossosNET:main Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants