cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: how to limit maximum sockets libcurl uses

From: Yamin Zhou <yamin_at_mavenir.com>
Date: Fri, 16 Sep 2011 12:58:10 +0000

> CURLMOPT_MAXCONNECTS is the maximum number of connections libcurl will keep
> around when you remove handles. When you add handles, libcurl might increase
> the amount so that each handle get the sockets/connections they need.

this means that we have no way to limit how many sockets libcurl opens and tries to connect?
we have a problem here that libcurl tries to do 1000 connections per second when server is down,
and this causes a big burden to the gateway of our system.

thanks,
yamin
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-16