Hi! 2026-10-20 17:50 skrev Daniel Stenberg via curl-library:
I want to loosen up our rules around this because I don't think we need them and I don't think users actually toggle and change all those options in the same handle and even if they do, they don't get hurt if such connections are reused.
At $DAYJOB we do just that; we have a shared curl handle for each running thread and run sequential connections with different options (such as CA cert, client cert) through that handle.
I don't think that would be a problem, however, as if this is documented as not being supported, we can move to a model where we use one curl handle per set of configuration options. We do not do parallel connections in a single thread, so I don't think that would impact performance much.
Otherwise, having an API call saying "hey! I'm reusing this handle for a different set of options" that would disqualify the handle for connection reuse could potentially be useful.
-- \\// Peter - http://www.softwolves.pp.se/ -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.html
