On Fri, 30 Sep 2022, gerwsx via curl-library wrote:
Does anyone know if there is a way to control the TCP connection setup rate?
When there are a lot of requests to be sent, libcurl keeps opening TCP
connections with a very high rate, for example:
I presume you are adding a lot of easy handles to a multi handle? curl will
then act on them as fast as possible.
Things you can do:
1. add them in a slower pace so that the previous transfers get time to start.
You do not HAVE TO add all the handles at the same time.
2. limit the number of connections per host name you allow curl to use
3. if they use HTTP/2 and could multiplex, consider using CURLOPT_PIPEWAIT to
make subsequent transfers prefer to pipeline rather than creating a new
connections
--
/ daniel.haxx.se
| Commercial curl support up to 24x7 is available!
| Private help, bug fixes, support, ports, new features
| https://curl.se/support.html
--
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html