mirror of
https://github.com/curl/curl.git
synced 2026-07-29 01:53:08 +03:00
connection: attached transfer count
Since we no longer traverse the transfers attached to a connection, change the sparse bitset to just a `uint32_t` counter. This makes multi_ev the single user of sparse bitsets for transfers using a socket and allocation failures are handled there correctly. Refs #19818 Closes #19836
This commit is contained in:
parent
1def380032
commit
d7928029fc
10 changed files with 29 additions and 44 deletions
|
|
@ -2786,7 +2786,7 @@ static CURLcode cf_h2_query(struct Curl_cfilter *cf,
|
|||
CF_DATA_SAVE(save, cf, data);
|
||||
if(!ctx->h2 || !nghttp2_session_check_request_allowed(ctx->h2)) {
|
||||
/* the limit is what we have in use right now */
|
||||
effective_max = CONN_ATTACHED(cf->conn);
|
||||
effective_max = cf->conn->attached_xfers;
|
||||
}
|
||||
else {
|
||||
effective_max = ctx->max_concurrent_streams;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue