mirror of
https://github.com/curl/curl.git
synced 2026-08-26 19:53:31 +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
|
|
@ -620,7 +620,7 @@ static void cpool_discard_conn(struct cpool *cpool,
|
|||
if(CONN_INUSE(conn) && !aborted) {
|
||||
CURL_TRC_M(data, "[CPOOL] not discarding #%" FMT_OFF_T
|
||||
" still in use by %u transfers", conn->connection_id,
|
||||
CONN_ATTACHED(conn));
|
||||
conn->attached_xfers);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -664,7 +664,7 @@ void Curl_conn_terminate(struct Curl_easy *data,
|
|||
* are other users of it */
|
||||
if(CONN_INUSE(conn) && !aborted) {
|
||||
DEBUGASSERT(0); /* does this ever happen? */
|
||||
DEBUGF(infof(data, "Curl_disconnect when inuse: %u", CONN_ATTACHED(conn)));
|
||||
DEBUGF(infof(data, "conn terminate when inuse: %u", conn->attached_xfers));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue