diff options
author | Patrick Monnerat <patrick@monnerat.net> | 2018-05-28 20:29:15 +0200 |
---|---|---|
committer | Patrick Monnerat <patrick@monnerat.net> | 2018-05-28 20:37:14 +0200 |
commit | 8541d02c967c993f6e36fd78c59c50b70315ac91 (patch) | |
tree | d3084a668426bd32295cd7acf517e934670317c1 /lib/multihandle.h | |
parent | 536e9f828997c39d67fcf09cb3b2c19d4cf216cc (diff) | |
download | curl-8541d02c967c993f6e36fd78c59c50b70315ac91.tar.gz |
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
Diffstat (limited to 'lib/multihandle.h')
-rw-r--r-- | lib/multihandle.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/multihandle.h b/lib/multihandle.h index 1a5017f4a..ea2bf352d 100644 --- a/lib/multihandle.h +++ b/lib/multihandle.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -23,6 +23,7 @@ ***************************************************************************/ #include "conncache.h" +#include "psl.h" struct Curl_message { struct curl_llist_element list; @@ -97,6 +98,11 @@ struct Curl_multi { /* Hostname cache */ struct curl_hash hostcache; +#ifdef USE_LIBPSL + /* PSL cache. */ + struct PslCache psl; +#endif + /* timetree points to the splay-tree of time nodes to figure out expire times of all currently set timers */ struct Curl_tree *timetree; |