Unverified Commit aa7b813a authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

multi: call multi_done on connect timeouts

Failing to do so would make the CURLINFO_TOTAL_TIME timeout to not get
updated correctly and could end up getting reported to the application
completely wrong (way too small).

Reported-by: accountantM on github
Fixes #3602
Closes #3605
parent 47e540df
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1606,7 +1606,8 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
      }
      else if(result) {
        /* failure detected */
        /* Just break, the cleaning up is handled all in one place */
        Curl_posttransfer(data);
        multi_done(data, result, TRUE);
        stream_error = TRUE;
        break;
      }