mirror of
https://github.com/curl/curl.git
synced 2026-06-01 22:14:17 +03:00
multi: set timeouts when transfer begins
When a new transfer is about to start we now set the proper timeouts to expire for the multi interface if they are set for the handle. This is a follow-up bugfix to make sure that easy handles timeout properly when the times expire and the multi interface is used. This also improves curl_multi_timeout().
This commit is contained in:
parent
09cee1633b
commit
3af696f7c4
1 changed files with 6 additions and 0 deletions
|
|
@ -1433,6 +1433,12 @@ CURLcode Curl_pretransfer(struct SessionHandle *data)
|
|||
Curl_initinfo(data); /* reset session-specific information "variables" */
|
||||
Curl_pgrsStartNow(data);
|
||||
|
||||
if(data->set.timeout)
|
||||
Curl_expire(data, data->set.timeout);
|
||||
|
||||
if(data->set.connecttimeout)
|
||||
Curl_expire(data, data->set.connecttimeout);
|
||||
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue