Skip to content

Conversation

@TheOneRing
Copy link
Contributor

@TheOneRing TheOneRing commented Dec 1, 2025

remove calls to setReadBufferSize when bandwidth monitor is not used

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses a memory issue where HTTP/2 downloads could cause excessive RAM usage by buffering entire files when the read buffer size was artificially limited. The fix conditionally applies read buffer size limits only when bandwidth management is active.

Key Changes

  • Disables HTTP/2 for downloads when bandwidth management is active to work around Qt buffering behavior
  • Conditionalizes all setReadBufferSize() calls to only execute when _bandwidthManager is present
  • Fixes typo "badnwidth" → "bandwidth" in error message

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

remove calls to setReadBufferSize when bandwidthmonitor is not used
@TheOneRing TheOneRing merged commit 17cc583 into stable-3.0 Dec 2, 2025
12 of 13 checks passed
@TheOneRing TheOneRing deleted the work/bandwidth branch December 2, 2025 09:22
@openclouders openclouders mentioned this pull request Dec 2, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants