From 5912da253b64de3cb2a1a229558077219b2c8a35 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 8 Jun 2022 11:03:07 +0200 Subject: 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 --- lib/multi.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/multi.c') 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; -- cgit v1.2.1