mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
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
This commit is contained in:
parent
47e540df8f
commit
aa7b813ad1
@ -1606,7 +1606,8 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
|
|||||||
}
|
}
|
||||||
else if(result) {
|
else if(result) {
|
||||||
/* failure detected */
|
/* failure detected */
|
||||||
/* Just break, the cleaning up is handled all in one place */
|
Curl_posttransfer(data);
|
||||||
|
multi_done(data, result, TRUE);
|
||||||
stream_error = TRUE;
|
stream_error = TRUE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user