-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removal of CURLOPT_OBSOLETE72
causes downstream breakage
#14747
Labels
Comments
e.g. curlpp:
|
This fixed local builds: diff --git a/include/curl/curl.h b/include/curl/curl.h
index 1609ff6..d39d978 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -1351,7 +1351,9 @@ typedef enum {
/* Max amount of cached alive connections */
CURLOPT(CURLOPT_MAXCONNECTS, CURLOPTTYPE_LONG, 71),
- /* 72 = OBSOLETE */
+ /* OBSOLETE, do not use! */
+ CURLOPT(CURLOPT_OBSOLETE72, CURLOPTTYPE_LONG, 72),
+
/* 73 = OBSOLETE */
/* Set to explicitly use a new connection for the upcoming transfer. CI run later. |
bagder
added a commit
that referenced
this issue
Aug 31, 2024
The symbols have not been in use for 17+ years and they did not do anything for several years before that, but apparently there are still code using them. Fixes #14747
I propose a slightly different fix. But also: I would urge you to fix those projects. Those symbols have been deprecated for over 17 years. |
Still an issue for the C++ wrappers: #14748 (comment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Noticed in vpckg CI run on CURL HEAD:
CURLOPT_OBSOLETE72
is still used in the header forcurl/include/curl/curl.h
Line 723 in 3fc81be
and
CURLOPT_CLOSEPOLICY
is used downstream in curlpp and curlcpp. (Edit: The problem really seems to be limited to these two C++ wrappers.)Originally posted by @dg0yt in #14634 (comment)
The text was updated successfully, but these errors were encountered: