From d8888bfc33cd06d17301259eecbc1ef1db36e92c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 25 Feb 2022 11:31:11 +0100 Subject: [PATCH] TODO: remove "Typesafe curl_easy_setopt()" I don't consider this a serious TODO item --- docs/TODO | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/docs/TODO b/docs/TODO index e3fbc846d0..ad6283e2e1 100644 --- a/docs/TODO +++ b/docs/TODO @@ -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