mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31: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
|
|
@ -120,9 +120,6 @@ typedef curl_off_t curl_prot_t;
|
|||
/* length of longest IPv6 address string including the trailing null */
|
||||
#define MAX_IPADR_LEN sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")
|
||||
|
||||
/* Default FTP/IMAP etc response timeout in milliseconds */
|
||||
#define RESP_TIMEOUT (60 * 1000)
|
||||
|
||||
/* Max string input length is a precaution against abuse and to detect junk
|
||||
input easier and better. */
|
||||
#define CURL_MAX_INPUT_LENGTH 8000000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue