mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:41:40 +03:00
multi: make max_total_* members size_t
Check size_t conversion on setting these members via CURLMIPT_*. Use members without casting. Closes #19618
This commit is contained in:
parent
047b36d7a6
commit
e2be568974
7 changed files with 29 additions and 10 deletions
|
|
@ -149,11 +149,10 @@ struct Curl_multi {
|
|||
struct cshutdn cshutdn; /* connection shutdown handling */
|
||||
struct cpool cpool; /* connection pool (bundles) */
|
||||
|
||||
long max_host_connections; /* if >0, a fixed limit of the maximum number
|
||||
of connections per host */
|
||||
|
||||
long max_total_connections; /* if >0, a fixed limit of the maximum number
|
||||
of connections in total */
|
||||
size_t max_host_connections; /* if >0, a fixed limit of the maximum number
|
||||
of connections per host */
|
||||
size_t max_total_connections; /* if >0, a fixed limit of the maximum number
|
||||
of connections in total */
|
||||
|
||||
/* timer callback and user data pointer for the *socket() API */
|
||||
curl_multi_timer_callback timer_cb;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue