diff options
Diffstat (limited to '')
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | src/input_curl.c | 6 |
2 files changed, 8 insertions, 0 deletions
@@ -7,6 +7,8 @@ MPD 0.14.1 - not yet released * update: - refresh stats after update - save the database even if it is empty +* input_curl: + - use select() to eliminate busy loop during connect * log: automatically append newline * fix setenv() conflict on Solaris * configure.ac: check for pkg-config before using it diff --git a/src/input_curl.c b/src/input_curl.c index eb2550c6d..20d03222a 100644 --- a/src/input_curl.c +++ b/src/input_curl.c @@ -344,6 +344,12 @@ input_curl_buffer(struct input_stream *is) c->buffered = false; + if (!is->ready) + /* not ready yet means the caller is waiting in a busy + loop; relax that by calling select() on the + socket */ + input_curl_select(c); + do { mcode = curl_multi_perform(c->multi, &running_handles); } while (mcode == CURLM_CALL_MULTI_PERFORM && list_empty(&c->buffers)); |