diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-06-08 11:03:07 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-06-08 11:07:01 +0200 |
commit | 5912da253b64de3cb2a1a229558077219b2c8a35 (patch) | |
tree | 515191bd7a2a455b2975dfb744b06aa0660f9151 /lib/multi.c | |
parent | 7007324a6a50693b089896fe078186bc8965d452 (diff) | |
download | curl-5912da253b64de3cb2a1a229558077219b2c8a35.tar.gz |
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
Diffstat (limited to 'lib/multi.c')
-rw-r--r-- | lib/multi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/multi.c b/lib/multi.c index 8e58d785a..ff8e5248d 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -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; |