Skip to content

Fix massive ram usage with http2 downloads - #736

Merged
TheOneRing merged 1 commit into
stable-3.0from
work/bandwidth
Dec 2, 2025
Merged

TheOneRing merged 1 commit into
stable-3.0from
work/bandwidth

Conversation

@TheOneRing

@TheOneRing TheOneRing commented Dec 1, 2025 •

Copy link
Copy Markdown
Contributor

remove calls to setReadBufferSize when bandwidth monitor is not used

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread src/libsync/networkjobs/getfilejob.cpp Resolved
remove calls to setReadBufferSize when bandwidthmonitor is not used
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