mirror of
https://github.com/curl/curl.git
synced 2026-08-26 00:53:39 +03:00
psl: use latest psl and refresh it periodically
The latest psl is cached in the multi or share handle. It is refreshed before use after 72 hours. New share lock CURL_LOCK_DATA_PSL controls the psl cache sharing. If the latest psl is not available, the builtin psl is used. Reported-by: Yaakov Selkowitz Fixes #2553 Closes #2601
This commit is contained in:
parent
536e9f8289
commit
8541d02c96
14 changed files with 254 additions and 29 deletions
|
|
@ -87,6 +87,15 @@ existed before this.
|
|||
|
||||
Note that when you use the multi interface, all easy handles added to the same
|
||||
multi handle will share connection cache by default without using this option.
|
||||
.IP CURL_LOCK_DATA_PSL
|
||||
The Public Suffix List stored in the share object is made available to all
|
||||
easy handle bound to the later. Since the Public Suffix List is periodically
|
||||
refreshed, this avoids updates in too many different contexts.
|
||||
|
||||
\fBCURL_LOCK_DATA_PSL\fP exists since 7.61.0.
|
||||
|
||||
Note that when you use the multi interface, all easy handles added to the same
|
||||
multi handle will share PSL cache by default without using this option.
|
||||
.RE
|
||||
.IP CURLSHOPT_UNSHARE
|
||||
This option does the opposite of \fICURLSHOPT_SHARE\fP. It specifies that
|
||||
|
|
|
|||
|
|
@ -780,6 +780,7 @@ CURL_LOCK_DATA_CONNECT 7.10.3
|
|||
CURL_LOCK_DATA_COOKIE 7.10.3
|
||||
CURL_LOCK_DATA_DNS 7.10.3
|
||||
CURL_LOCK_DATA_NONE 7.10.3
|
||||
CURL_LOCK_DATA_PSL 7.61.0
|
||||
CURL_LOCK_DATA_SHARE 7.10.4
|
||||
CURL_LOCK_DATA_SSL_SESSION 7.10.3
|
||||
CURL_LOCK_TYPE_CONNECT 7.10 - 7.10.2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue