Commit 2158e234 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

After the TCP connect is confirmed in CURLM_STATE_WAITCONNECT and it changes

state, we return CURLM_CALL_MULTI_PERFORM unconditionally then so that we
can act faster like in the case the protocol-specific connect doesn't block
on anything and we can just persue on the next action immediately. It also
then avoids a case where curl_multi_fdset() would return -1.
parent cb348a5b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1099,15 +1099,15 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
          else
#endif
            multistate(easy, CURLM_STATE_PROTOCONNECT);

        }
        else {
        else
          /* after the connect has completed, go WAITDO or DO */
          multistate(easy, multi->pipelining_enabled?
                     CURLM_STATE_WAITDO:CURLM_STATE_DO);

        result = CURLM_CALL_MULTI_PERFORM;
      }
      }
      break;

    case CURLM_STATE_PROTOCONNECT: