TODO: remove "Typesafe curl_easy_setopt()"

I don't consider this a serious TODO item
This commit is contained in:
Daniel Stenberg 2022-02-25 11:31:11 +01:00
parent e55bee70f1
commit d8888bfc33
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -30,7 +30,6 @@
1.11 minimize dependencies with dynamically loaded modules
1.12 updated DNS server while running
1.13 c-ares and CURLOPT_OPENSOCKETFUNCTION
1.14 Typesafe curl_easy_setopt()
1.15 Monitor connections in the connection pool
1.16 Try to URL encode given URL
1.17 Add support for IRIs
@ -300,23 +299,6 @@
See https://github.com/curl/curl/issues/2734
1.14 Typesafe curl_easy_setopt()
One of the most common problems in libcurl using applications is the lack of
type checks for curl_easy_setopt() which happens because it accepts varargs
and thus can take any type.
One possible solution to this is to introduce a few different versions of the
setopt version for the different kinds of data you can set.
curl_easy_set_num() - sets a long value
curl_easy_set_large() - sets a curl_off_t value
curl_easy_set_ptr() - sets a pointer
curl_easy_set_cb() - sets a callback PLUS its callback data
1.15 Monitor connections in the connection pool
libcurl's connection cache or pool holds a number of open connections for the