mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:43:35 +03:00
parent
2538dc04e3
commit
02dca1eb86
3 changed files with 5 additions and 5 deletions
|
|
@ -404,7 +404,7 @@ static CURLMcode multi_xfers_add(struct Curl_multi *multi,
|
|||
|
||||
if(capacity < max_capacity) {
|
||||
/* We want `multi->xfers` to have "sufficient" free rows, so that we do
|
||||
* have to reuse the `mid` from a removed easy right away.
|
||||
* not have to reuse the `mid` from a removed easy right away.
|
||||
* Since uint_tbl and uint_bset are memory efficient,
|
||||
* regard less than 25% free as insufficient.
|
||||
* (for low capacities, e.g. multi_easy, 4 or less). */
|
||||
|
|
@ -420,7 +420,7 @@ static CURLMcode multi_xfers_add(struct Curl_multi *multi,
|
|||
new_size = max_capacity; /* can not be larger than this */
|
||||
}
|
||||
else {
|
||||
/* make it a 64 multiple, since our bitsets frow by that and
|
||||
/* make it a 64 multiple, since our bitsets grow by that and
|
||||
* small (easy_multi) grows to at least 64 on first resize. */
|
||||
new_size = (((used + min_unused) + 63) / 64) * 64;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue