mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:21:41 +03:00
pingpong: cleanup timeleft handling
- Move `RESP_TIMEOUT` from urldata.h to pingpong.h as `PINGPONG_TIMEOUT_MS`. - Rename `Curl_pp_state_timeout()` to `Curl_pp_state_timeleft_ms()` as the function returns the time left, not the timout.. - Update implementation comments and variable names Closes #20888
This commit is contained in:
parent
da7bfb89a1
commit
f14ce01369
4 changed files with 23 additions and 30 deletions
|
|
@ -657,7 +657,7 @@ static CURLcode getftpresponse(struct Curl_easy *data,
|
|||
|
||||
while(!*ftpcodep && !result) {
|
||||
/* check and reset timeout value every lap */
|
||||
timediff_t timeout = Curl_pp_state_timeout(data, pp);
|
||||
timediff_t timeout = Curl_pp_state_timeleft_ms(data, pp);
|
||||
timediff_t interval_ms;
|
||||
|
||||
if(timeout <= 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue