mirror of
https://github.com/curl/curl.git
synced 2026-07-23 23:47:15 +03:00
CURLOPT_DNS_USE_GLOBAL_CACHE: remove
Remove the code too. The functionality has been disabled in code since 7.62.0. Setting this option will from now on simply be ignored and have no function. Closes #3654
This commit is contained in:
parent
ebc0550110
commit
f73de32d46
9 changed files with 35 additions and 119 deletions
|
|
@ -5,26 +5,6 @@ email the curl-library mailing list as soon as possible and explain to us why
|
|||
this is a problem for you and how your use case can't be satisfied properly
|
||||
using a work around.
|
||||
|
||||
## `CURLOPT_DNS_USE_GLOBAL_CACHE`
|
||||
|
||||
This option makes libcurl use a global non-thread-safe cache for DNS if
|
||||
enabled. The option has been marked as "obsolete" in the header file and in
|
||||
documentation for several years already.
|
||||
|
||||
There's proper and safe method alternative provided since many years: the
|
||||
share API.
|
||||
|
||||
### State
|
||||
|
||||
In curl 7.62.0 setting this option to TRUE will not have any effect. The
|
||||
global cache will not be enabled. The code still remains so it is easy to
|
||||
revert if need be.
|
||||
|
||||
### Removal
|
||||
|
||||
Remove all global-cache related code from curl around April 2019 (might be
|
||||
7.66.0).
|
||||
|
||||
## HTTP/0.9
|
||||
|
||||
Supporting this is non-obvious and might even come as a surprise to some
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
.\" * | (__| |_| | _ <| |___
|
||||
.\" * \___|\___/|_| \_\_____|
|
||||
.\" *
|
||||
.\" * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
.\" * Copyright (C) 1998 - 2019, 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
|
||||
|
|
@ -29,6 +29,8 @@ CURLOPT_DNS_USE_GLOBAL_CACHE \- enable/disable global DNS cache
|
|||
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_DNS_USE_GLOBAL_CACHE,
|
||||
long enable);
|
||||
.SH DESCRIPTION
|
||||
Has no function since 7.62.0. Do note use!
|
||||
|
||||
Pass a long. If the \fIenable\fP value is 1, it tells curl to use a global DNS
|
||||
cache that will survive between easy handle creations and deletions. This is
|
||||
not thread-safe and this will use a global variable.
|
||||
|
|
@ -53,7 +55,7 @@ if(curl) {
|
|||
}
|
||||
.fi
|
||||
.SH AVAILABILITY
|
||||
Subject for removal in the future. Do not use!
|
||||
Deprecated since 7.62.0. Has no function.
|
||||
.SH RETURN VALUE
|
||||
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||
.SH "SEE ALSO"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue