Description
multi_wait()
ignores the potential error from Curl_poll()
at
Line 1315 in d67f41a
If Curl_poll()
returns immediately the function will then return CURLM_OK
right away without performing any waiting. This will lead curl_multi_poll()
/curl_multi_wait()
to return immediately as well. Effectively this will lead to a busyloop as there is no status returned that would lead to terminating a loop of a typical curl_multi_perform()
+ curl_multi_poll()
app, at least if the app doesn't bail out once the connections are completed (still_running == 0
doesn't lead to loop termination).
I did this
Had condition where poll()
(or select()
if using poll()
emulation) return a permanent error without waiting.
I expected the following
curl_multi_poll()
/ curl_multi_wait()
to return an error if Curl_poll()
fails.
The question is what error to return though as none of the CURLM_
errors seem to fit the bill.
curl/libcurl version
7.83.1
operating system
This is a generic issue, but it is likely more likely to get triggered on specific platforms.