mirror of
https://github.com/curl/curl.git
synced 2026-08-26 17:43:31 +03:00
timeout handling: auto-detect effective timeout
When checking a transfer for being expired via `Curl_timeleft_ms()`, eleminate the `bool connecting` parameter and have the function check the `mstate` of the transfer instead. Advantages: * eleminate the caller needing awareness if the transfer is connecting or in a later state * fix pingpong timeout handling to check the correct timeout during "proto_connect" phases * avoid using "connecting" timeouts during establishing a secondary connection (e.g. FTP) since this would use the timestamp from the original, primary connect and thus be wrong Reported-by: Wyuer on github Fixes #20347 Closes #20354
This commit is contained in:
parent
3d354f55b7
commit
8ce16e7bf2
25 changed files with 73 additions and 79 deletions
|
|
@ -40,6 +40,7 @@ bool Curl_multiplex_wanted(const struct Curl_multi *multi);
|
|||
void Curl_set_in_callback(struct Curl_easy *data, bool value);
|
||||
bool Curl_is_in_callback(struct Curl_easy *data);
|
||||
CURLcode Curl_preconnect(struct Curl_easy *data);
|
||||
bool Curl_is_connecting(struct Curl_easy *data);
|
||||
|
||||
void Curl_multi_connchanged(struct Curl_multi *multi);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue