Skip to content

share: connection pool shutdowns - #23404

Closed
icing wants to merge 3 commits into
curl:masterfrom
icing:share-cpool-shutdowns
Closed

icing wants to merge 3 commits into
curl:masterfrom
icing:share-cpool-shutdowns

Conversation

@icing

@icing icing commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

multi.c: handle a call to Curl_multi_connchanged() with a NULL argument. This may happen when shutting down connections from a share.

@github-actions github-actions Bot added the tests label Oct 15, 2026
icing added 3 commits October 15, 2026 10:53
When closing a share with a connection pool, do not run the
shutdown sequences even once as there is no "multi" to operate
on. Just terminate the connections.

multi.c: handle a call to `Curl_multi_connchanged()` with a NULL
argument.

test_60_05: check shutdown in parallel mode that has the
connection pool at the multi handle, not a share.
@icing
icing force-pushed the share-cpool-shutdowns branch from 1cb2349 to 0993caf Compare October 15, 2026 09:01
@curl curl deleted a comment from testclutch Oct 15, 2026
@icing
icing requested a review from cmeister2 October 15, 2026 09:18

@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.

Verified against the current curl-fuzzer/OSS-Fuzz reproducer curl_fuzzer_proto_api-6416044626083840.

Before this change, the testcase crashes in Curl_multi_connchanged(NULL) while tearing down a share-owned connection pool. With this null guard, the exact testcase completes cleanly. This solves the issue; the fuzzer testcase is our regression coverage.

@bagder bagder closed this in 03f3f4c Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants