Skip to content

cpool: do not use admin handle for conn lookup - #23090

Closed
icing wants to merge 1 commit into
curl:masterfrom
icing:cpool-last-conn-no-admin
Closed

icing wants to merge 1 commit into
curl:masterfrom
icing:cpool-last-conn-no-admin

Conversation

@icing

@icing icing commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

The recent cpool refactor used an admin handle for looking up the last used connection of a transfer, but only for pool locks.

In this use case, an admin handle it not always available (curl_easy_getinfo) and not necessary for pool locks. Just used the passed transfer for locking.

The recent cpool refactor used an admin handle for looking
up the last used connection of a transfer, but only for pool
locks.

In this use case, an admin handle it not always available
(curl_easy_getinfo) and not necessary for pool locks. Just
used the passed transfer for locking.

@cmeister2 cmeister2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this fixes the fuzz issues I was seeing

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved review issues remain.

Review effort: Lite
Findings: None

What changed in this PR

Updates connection lookup locking to use the active transfer handle instead of requiring an admin handle.

Changes:

  • Uses data for connection-pool locking.
  • Removes unnecessary admin-handle lookup.
File Description
lib/​conncache.c Adjusts locking for last-connection lookup.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@bagder bagder closed this in dd3e3fc Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants