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

Remove unnecessary episode_download_queue_updated socket event causing OOM #3604

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

mikiher
Copy link
Contributor

@mikiher mikiher commented Nov 12, 2024

This fixes #3601.

The first commit removes an unnecessary socket event with a large payload that was emitted every time an episode download was queued. If a large number of episodes n were queued, this caused the creation of O(n^2) large objects to be created in quick sucession and queued for sending through the web socket, which caused an OOM for n=~2000.

The second commit resolves an unrelated bug in the podcast item page, in which if you pressed on the button to clear the download queue for a library item, the button and the message {0} Episode(s) queued for download were not removed after the download queue was emptied.

@mikiher mikiher marked this pull request as ready for review November 12, 2024 05:54
@advplyr
Copy link
Owner

advplyr commented Nov 12, 2024

Thanks!

@advplyr advplyr merged commit 48e0a3c into advplyr:master Nov 12, 2024
5 checks passed
@mikiher mikiher deleted the episode-download-oom branch November 18, 2024 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: OOM When trying to download all episodes from a large podcast
2 participants