aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/input_curl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/input_curl.c b/src/input_curl.c
index f86386522..d9655fc62 100644
--- a/src/input_curl.c
+++ b/src/input_curl.c
@@ -470,6 +470,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 &&