From 62f41d7f1fadabd0886204b20d069628d7878bd8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 24 Feb 2019 16:32:04 +0100 Subject: 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 users to be completely wrong (way too small). Reported-by: accountantM on github Fixes #3602 --- lib/multi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/multi.c b/lib/multi.c index 521262b2b..06aaed26a 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; } -- cgit v1.2.1