mirror of
https://github.com/curl/curl.git
synced 2026-08-24 22:13:33 +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
|
|
@ -317,6 +317,9 @@ curl_easy_strerror(CURLcode error)
|
|||
case CURLE_SSL_CLIENTCERT:
|
||||
return "SSL Client Certificate required";
|
||||
|
||||
case CURLE_UNRECOVERABLE_POLL:
|
||||
return "Unrecoverable error in select/poll";
|
||||
|
||||
/* error codes not used by current libcurl */
|
||||
case CURLE_OBSOLETE20:
|
||||
case CURLE_OBSOLETE24:
|
||||
|
|
@ -400,6 +403,9 @@ curl_multi_strerror(CURLMcode error)
|
|||
case CURLM_ABORTED_BY_CALLBACK:
|
||||
return "Operation was aborted by an application callback";
|
||||
|
||||
case CURLM_UNRECOVERABLE_POLL:
|
||||
return "Unrecoverable error in select/poll";
|
||||
|
||||
case CURLM_LAST:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue