1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

easy: Remove poll failure check in easy_transfer

.. because curl_multi_wait can no longer signal poll failure.

follow-up to 77e1726

Bug: https://github.com/curl/curl/issues/707
This commit is contained in:
Jay Satiro 2016-03-19 15:29:52 -04:00
parent e66109c1e3
commit c5744340db

View File

@ -703,12 +703,7 @@ static CURLcode easy_transfer(CURLM *multi)
mcode = curl_multi_wait(multi, NULL, 0, 1000, &ret); mcode = curl_multi_wait(multi, NULL, 0, 1000, &ret);
if(mcode == CURLM_OK) { if(mcode == CURLM_OK) {
if(ret == -1) { if(ret == 0) {
/* poll() failed not on EINTR, indicate a network problem */
result = CURLE_RECV_ERROR;
break;
}
else if(ret == 0) {
struct timeval after = curlx_tvnow(); struct timeval after = curlx_tvnow();
/* If it returns without any filedescriptor instantly, we need to /* If it returns without any filedescriptor instantly, we need to
avoid busy-looping during periods where it has nothing particular avoid busy-looping during periods where it has nothing particular