Visitar URL original
share: add OpenSSL CA store sharing across multi handles by apeschar · Pull Request #23185 · curl/curl · GitHub
Skip to content

share: add OpenSSL CA store sharing across multi handles - #23185

Open
apeschar wants to merge 6 commits into
curl:masterfrom
apeschar:share-ca-cache
Open

apeschar wants to merge 6 commits into
curl:masterfrom
apeschar:share-ca-cache

Conversation

@apeschar

Copy link
Copy Markdown

Currently the share API does not support sharing CA stores. CA stores are automatically shared between connections on a multi handle, but cannot be shared between multi handles.

I use separate multi handles to isolate connection pools. When creating many new multi handles for SSL connections, repeated reads of the CA store add up to significant CPU load.

This PR introduces CURL_LOCK_DATA_CA to enable sharing of CA stores.

@testclutch

Copy link
Copy Markdown

Analysis of PR #23185 at e4999328:

Test 3234 failed, which has NOT been flaky recently, so there could be a real issue in this PR. Note that this test has failed in 240 different CI jobs (the link just goes to one of them). Note that this CI job has had a number of other flaky tests recently (2, to be specific) so it may be that this failure is rather a systemic issue with this job and not with this specific PR.

Generated by Testclutch

@apeschar

apeschar commented Oct 1, 2026

Copy link
Copy Markdown
Author

All the test, code style issues that caused CI to fail have been fixed. Remaining failures are dependency download issues.

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.

2 participants