Re: Reseting a curl multi handle for reuse

2023-08-21 Thread Daniel Stenberg via curl-library
On Mon, 21 Aug 2023, Taw via curl-library wrote: I want to use a multi handle for async connection.Not sure if the code belowis correct, because I don't see any curl_multi_reset in the documentation and I don't know how to reset it. There is no curl_multi_reset(). I have never seen anyone

Re: help - libcurl frozen when retrieve token from microsoft cognitive api

2023-08-21 Thread Daniel Stenberg via curl-library
On Mon, 21 Aug 2023, Hua-Tong Shi via curl-library wrote: curl_easy_setopt(curl_ptr, CURLOPT_POST, 1L); You ask libcurl to do a POST, but without telling it *what* to post. Like CURLOPT_POSTFIELDS set to "" (a zero length string) since you seem to not want to actually send any data

help - libcurl frozen when retrieve token from microsoft cognitive api

2023-08-21 Thread Hua-Tong Shi via curl-library
I referred to the curl sample and wrote the following program. ```C #include #include #include #include #include struct data { char trace_ascii; /* 1 or 0 */ }; struct MemoryStruct { char *memory; size_t size; }; static void dump(const char *text, FILE *stream, unsigned char

should we retract CVE-2023-32001?

2023-08-21 Thread Daniel Stenberg via curl-library
Hello friends, Harry makes a very compelling argument in this issue [*]. I'm interested in more comments and thoughts on the topic before I act on it. [*] = https://github.com/curl/curl/issues/11530 -- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug

Reseting a curl multi handle for reuse

2023-08-21 Thread Taw via curl-library
Hello,  I am already reusing a curl easy handle, but not sure how to reuse a curl multi handle. My current (psuedo)code is like this. curlEasy = curl_easy_init(); // connection 1// set options 1curl_easy_perform(curlEasy);curl_easy_reset(curlEasy); // connection 2// set options

Cirrus CI limiting free compute time

2023-08-21 Thread Dan Fandrich via curl-library
The curl Cirrus CI pages now link[1] to a notice that they're limiting their free CI tier starting next week. The new limit will be "50 compute credits" per month, which seems to buy us about 260 hours of compute time. Unfortunately, curl has been using about 6000 hours of compute time per month

Re: Cirrus CI limiting free compute time

2023-08-21 Thread Timothe Litt via curl-library
At $3500/mo, you could buy a pretty decent physical server in less than a month.  Last one I bought was ~USD $2500 - I went for a model year behind (besides being cheaper, I have no use for the "efficiency"/large core mixes).  Several Tb of disk, ECC memory, 6 cores (12 counting HT), 3.4GHz,