Hello, Regarding CURLOPT_CONNECTTIMEOUT_MS option, I found out that the timeout set is shared between multiple hosts. Not only that, the allotment is weird, IMO.
The period set will be split into multiple time budgets for each connection in reverse exponential manners. See the following thread for the details. https://curl.se/mail/lib-2014-11/0160.html To recap, I'll produce a short example here: If you set the connection timeout to 3 seconds, the first server gets 1.5s budget; the second one gets 750ms, the third 375ms, and so on. Don't get me wrong; I think splitting into [timeout]/N is equally weird too. What I actually expect from the connection timeout is: it should be applied per connection. For instance, if I set the timeout to 1s, I expect connection timeouts of 1s for each try. This is also the behavior of Nginx when used as a reverse proxy. Is there a way to accomplish this with libcurl? ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.html