From: Daniel Stenberg Date: Sun, 24 Feb 2019 15:32:04 +0000 (+0100) Subject: multi: call multi_done on connect timeouts X-Git-Tag: curl-7_64_1~95 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aa7b813ad1bfb4e72e367fb99c61c6e680d5a4b8;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/multi.c b/lib/multi.c index 521262b2b2..06aaed26a8 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -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; }