Hey all,
I've got a pull request at feat: enable persistent `CurlShareHandle` objects by ericnorris · Pull Request #15603 · php/php-src · GitHub
that I wanted to bring to your attention. We're interested in being
able to reuse curl share handles across requests in mod_php, since
we'd expect a performance benefit from not having to redo DNS lookups
(in the case of CURL_LOCK_DATA_DNS) or having to re-establish
connections (in the case of CURL_LOCK_DATA_CONNECT).
I'm not tied to the specific implementation in my PR, though I'll note
that I ran into an issue with calling curl_share_setopt with
CURL_LOCK_DATA_CONNECT that makes it preferable to be able to
initialize the curl share handle once with the share options. I've
fixed that issue in share: don't reinitialize conncache by ericnorris · Pull Request #14696 · curl/curl · GitHub, but of
course that won't be available for most people for quite some time.
Thanks!
Eric Norris