Skip to content

Read playlist in chunks to avoid hitting MPDs max_output_buffer#124

Draft
maxmitti wants to merge 1 commit intonullobsi:mainfrom
maxmitti:fix/72
Draft

Read playlist in chunks to avoid hitting MPDs max_output_buffer#124
maxmitti wants to merge 1 commit intonullobsi:mainfrom
maxmitti:fix/72

Conversation

@maxmitti
Copy link
Contributor

The actual issue is, that MPDs max_output_buffer setting is exceeded.
Apparently MPD simply drops the connection when that happens.

A workaround could be to increase the max_output_buffer setting.
The obvious client-side fix is to load the playlist in chunks, which this change does.

I am not too happy with the overall UX, though.
While the playlist is loaded (which can take multiple seconds) there is no indication that anything is happening, which can be confusing.

Fixes #72

@Oreolek
Copy link

Oreolek commented Dec 28, 2025

Yup, this actually solves the problem. There are still connection errors in some places ("Play now and replace queue" or drag-and-drop for big playlists don't work) but it's possible to use "Append" or queue the playlist from another client; then Cantata can actually display the queue.

Visually it also looks more responsive since the client starts displaying the queue sooner.

screenshot3

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: error connecting to mpd playing a big playlist

2 participants