summaryrefslogtreecommitdiff
path: root/lib/multi.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-06-08 11:03:07 +0200
committerDaniel Stenberg <daniel@haxx.se>2022-06-08 11:07:01 +0200
commit5912da253b64de3cb2a1a229558077219b2c8a35 (patch)
tree515191bd7a2a455b2975dfb744b06aa0660f9151 /lib/multi.c
parent7007324a6a50693b089896fe078186bc8965d452 (diff)
downloadcurl-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.c2
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;