diff options
author | Max Kellermann <max@duempel.org> | 2008-12-24 03:00:08 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-24 03:00:08 +0100 |
commit | d2d11d70a80bde0b348ccfd59bf1ec82bb997cb7 (patch) | |
tree | 2912851b969ea47444224406e2c7c6ffc9b25f24 /src/tag_id3.c | |
parent | d96cda95a18d50c6deb79cbb31ea084579a9c208 (diff) | |
download | mpd-d2d11d70a80bde0b348ccfd59bf1ec82bb997cb7.tar.gz mpd-d2d11d70a80bde0b348ccfd59bf1ec82bb997cb7.tar.xz mpd-d2d11d70a80bde0b348ccfd59bf1ec82bb997cb7.zip |
client: always attempt to flush deferred buffers
When a response is very long (e.g. a large playlist > 100k songs),
most of it will end up in the deferred buffers. Filling the deferred
queue is very expensive currently, because a new buffer is allocated
for every client_write() operation. This may lead to long delays, and
the client might give up and disconnect meanwhile. This patch makes
MPD attempt to flush the deferred queue as often as possible, to work
around this problem. Due to the MPD 0.14 code freeze, we should not
optimize the buffering code now.
Diffstat (limited to 'src/tag_id3.c')
0 files changed, 0 insertions, 0 deletions