Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Dec 2, 2025

reduces overhead when doing multiple curl requests per php-request.
starting with PHP 8.5 this even allows caching across php-requests.

other places which manually invoke curl_init can benefit in a similar way by adding such code. curl_multi_* will automatically share caches between requests, without the need for additional code.

we could also add CURL_LOCK_DATA_SSL_SESSION, but I was not sure whether this has security implications. therefore I left it out for now.

analog lesstif/php-JiraCloud-RESTAPI#117

reduces overhead when doing multiple curl requests per php-request.

other places which manually invoke `curl_init` can benefit in a similar way by adding such code. `curl_multi_*` will automatically share caches between requests, without the need for additional code.
@staabm staabm marked this pull request as ready for review December 2, 2025 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant