command/file: "albumart" tries to send larger chunks if available

If we only receive very little data from the InputStream, try a second
Read() call to get more data.  This works around tiny reads at input
buffer boundaries with the io_uring input plugin.  These tiny reads
are inefficient, and we can afford to wait one more low-level I/O
iteration to finish (but not more).

Closes https://github.com/MusicPlayerDaemon/MPD/issues/2186
This commit is contained in:
Max Kellermann
2025-01-29 12:44:26 +01:00
parent d7212624b0
commit c0a9434f34
2 changed files with 15 additions and 0 deletions

2
NEWS
View File

@@ -1,4 +1,6 @@
ver 0.23.17 (not yet released)
* protocol
- "albumart" tries to send larger chunks if available
* storage
- nfs: require libnfs 4.0 or later
* database