mirror of
https://github.com/curl/curl.git
synced 2026-07-28 21:53:06 +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
|
|
@ -1312,6 +1312,8 @@ static CURLMcode multi_wait(struct Curl_multi *multi,
|
|||
#else
|
||||
pollrc = Curl_poll(ufds, nfds, timeout_ms); /* wait... */
|
||||
#endif
|
||||
if(pollrc < 0)
|
||||
return CURLM_UNRECOVERABLE_POLL;
|
||||
|
||||
if(pollrc > 0) {
|
||||
retcode = pollrc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue