]> granicus.if.org Git - curl/commitdiff
easy: Remove poll failure check in easy_transfer
authorJay Satiro <raysatiro@yahoo.com>
Sat, 19 Mar 2016 19:29:52 +0000 (15:29 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Sat, 19 Mar 2016 19:29:52 +0000 (15:29 -0400)
.. because curl_multi_wait can no longer signal poll failure.

follow-up to 77e1726

Bug: https://github.com/curl/curl/issues/707

lib/easy.c

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