mirror of
https://github.com/curl/curl.git
synced 2026-08-26 04:13:31 +03:00
select: return error from "lethal" poll/select errors
Adds two new error codes: CURLE_UNRECOVERABLE_POLL and CURLM_UNRECOVERABLE_POLL one each for the easy and the multi interfaces. Reported-by: Harry Sintonen Fixes #8921 Closes #8961
This commit is contained in:
parent
7007324a6a
commit
5912da253b
10 changed files with 37 additions and 8 deletions
|
|
@ -549,6 +549,8 @@ static CURLcode wait_or_timeout(struct Curl_multi *multi, struct events *ev)
|
|||
|
||||
/* wait for activity or timeout */
|
||||
pollrc = Curl_poll(fds, numfds, ev->ms);
|
||||
if(pollrc < 0)
|
||||
return CURLE_UNRECOVERABLE_POLL;
|
||||
|
||||
after = Curl_now();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue