mirror of
https://github.com/curl/curl.git
synced 2026-08-25 07:33:36 +03:00
time-keeping: keep timestamp in multi, always update
Always use curlx_now() when calling Curl_pgrs_now(data). Tests with the "manual" updates to now proved differ more then 100ms in parallel testing. Add `curlx_nowp()` to set current time into a struct curltime. Add `curlx_ptimediff_ms() and friends, passing pointers. Update documentation. Closes #19998
This commit is contained in:
parent
308c347c8b
commit
b4be1f271e
61 changed files with 471 additions and 502 deletions
|
|
@ -1994,7 +1994,7 @@ static CURLcode imap_setup_connection(struct Curl_easy *data,
|
|||
Curl_sasl_init(&imapc->sasl, data, &saslimap);
|
||||
|
||||
curlx_dyn_init(&imapc->dyn, DYN_IMAP_CMD);
|
||||
Curl_pp_init(pp, &data->progress.now);
|
||||
Curl_pp_init(pp, Curl_pgrs_now(data));
|
||||
|
||||
if(Curl_conn_meta_set(conn, CURL_META_IMAP_CONN, imapc, imap_conn_dtor))
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue