Global lock for lazy PSL loading ?
Date: Mon, 12 Dec 2016 17:08:14 +0100
I would like to improve the PSL code in Curl_cookie_add(), namely use
psl_latest() instead of psl_builtin() if possible.
That function eventually introduces (local) loading of the latest available
PSL data (either DAFSA or plain text PSL).
So I think of a static/global psl_ctx_t variable, that will be lazy-
initialized on the first call to Curl_cookie_add().
That needs a global locking function... well, what do you suggest ?
[I am pretty sure that Curl_share_lock() is not the solution (might result in
several one PSL loading per Curl_easy instance), but didn't find a better
- application/pgp-signature attachment: This is a digitally signed message part.