diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-10-06 18:32:27 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-06 18:32:27 +0200 |
commit | 37a8239f442e54de8e55de41f95b8e4a4c972701 (patch) | |
tree | 31da96e4791d2f89d3480191e76aa097e3ccaddb /src/inputStream_http_auth.h | |
parent | 700f18eee55cd6a5906bd526f62e958647cea221 (diff) | |
download | mpd-37a8239f442e54de8e55de41f95b8e4a4c972701.tar.gz mpd-37a8239f442e54de8e55de41f95b8e4a4c972701.tar.xz mpd-37a8239f442e54de8e55de41f95b8e4a4c972701.zip |
directory: simplify list update handling logic
Now the "update" command can be issued multiple times regardless
of whether the client is in list mode or not.
We serialize the update tasks to prevent updates from trampling
over each other and will spawn another update task
once the current one is finished updating and reaped.
Right now we cap the queue size to 32 which is probably enough (I
bet most people usually run update with no argument anyways);
but we can make it grow/shrink dynamically if needed. There'll
still be a hard-coded limit to prevent DoS attacks, though.
Diffstat (limited to 'src/inputStream_http_auth.h')
0 files changed, 0 insertions, 0 deletions