mirror of
https://github.com/curl/curl.git
synced 2026-07-25 19:17:17 +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
|
|
@ -538,8 +538,7 @@ CURLMcode Curl_multi_ev_assess_conn(struct Curl_multi *multi,
|
|||
}
|
||||
|
||||
CURLMcode Curl_multi_ev_assess_xfer_bset(struct Curl_multi *multi,
|
||||
struct uint32_bset *set,
|
||||
struct curltime *pnow)
|
||||
struct uint32_bset *set)
|
||||
{
|
||||
uint32_t mid;
|
||||
CURLMcode mresult = CURLM_OK;
|
||||
|
|
@ -548,7 +547,6 @@ CURLMcode Curl_multi_ev_assess_xfer_bset(struct Curl_multi *multi,
|
|||
do {
|
||||
struct Curl_easy *data = Curl_multi_get_easy(multi, mid);
|
||||
if(data) {
|
||||
Curl_pgrs_now_at_least(data, pnow);
|
||||
mresult = Curl_multi_ev_assess_xfer(multi, data);
|
||||
}
|
||||
} while(!mresult && Curl_uint32_bset_next(set, mid, &mid));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue