Commit ddaa78f0 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Dmitry Kurochkin's additional pipelining bugfix

parent 3d558777
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -944,8 +944,12 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
        easy->result = addHandleToSendOrPendPipeline(easy->easy_handle,
        easy->result = addHandleToSendOrPendPipeline(easy->easy_handle,
                                                     easy->easy_conn);
                                                     easy->easy_conn);
        if(CURLE_OK == easy->result) {
        if(CURLE_OK == easy->result) {
          if (easy->easy_handle->state.is_in_pipeline)
          if (easy->easy_handle->state.is_in_pipeline) {
            multistate(easy, CURLM_STATE_WAITDO);
            multistate(easy, CURLM_STATE_WAITDO);
            if(isHandleAtHead(easy->easy_handle,
                              easy->easy_conn->send_pipe))
              result = CURLM_CALL_MULTI_PERFORM;
          }
          else {
          else {
            if(async)
            if(async)
              /* We're now waiting for an asynchronous name lookup */
              /* We're now waiting for an asynchronous name lookup */