cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Setting number of HTTP client connections

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 13 Sep 2002 14:33:09 +0200 (MET DST)

On Fri, 13 Sep 2002, Holger Rauch wrote:

> > I mean, how often do you really manage to communicate with more than five
> > different servers and get back to them again without them having closed
> > the connection anyway?
>
> The problem I will be faced with is that I don't want to connect to many
> different servers, but many times to the *same* server instead. That's the
> reason I fiddled with CURLOPT_MAXCONNECTS. In case this approach is
> bad/wrong, please don't hesitate to let me know if an alternative approach
> exists.

If you want to connect to the same server repeatedly, then the default number
of connections will do just fine. There's very little to gain by changing
that, in any direction.

> The set amount will be the maximum
> amount of simultaneous connections that libcurl may
> cache between file transfers
> ^^^^^^^^^^^^^^^
> (It's the phrase "file transfers" that made me believe that this option
> only applied to FTP.)

Oh. Well I should consider saying that in a different way then!

-- 
 Daniel Stenberg -- curl related mails on curl related mailing lists please
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-09-13