mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
If Curl_select() returns with the error bit set, bail out.
This commit is contained in:
parent
315a9c95d5
commit
b19cba2016
@ -287,6 +287,11 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
|||||||
fd_write = CURL_SOCKET_BAD;
|
fd_write = CURL_SOCKET_BAD;
|
||||||
|
|
||||||
select_res = Curl_select(fd_read, fd_write, 0);
|
select_res = Curl_select(fd_read, fd_write, 0);
|
||||||
|
if(select_res & CSELECT_ERR) {
|
||||||
|
failf(data, "select/poll returned error: %s",
|
||||||
|
Curl_strerror(conn, Curl_ourerrno()));
|
||||||
|
return CURLE_SEND_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
do {
|
do {
|
||||||
/* If we still have reading to do, we check if we have a readable
|
/* If we still have reading to do, we check if we have a readable
|
||||||
|
Loading…
Reference in New Issue
Block a user