curl-library
RE: how to limit maximum sockets libcurl uses
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 16 Sep 2011 15:45:50 +0200 (CEST)
Date: Fri, 16 Sep 2011 15:45:50 +0200 (CEST)
On Fri, 16 Sep 2011, Yamin Zhou wrote:
> this means that we have no way to limit how many sockets libcurl opens and
> tries to connect?
I don't understand what made you draw that conclusion. If you don't add more
handles, it won't use more connections.
> 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.
So stop adding new handles at that pace if that's a problem for you!
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-09-16