cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: how many curl handles application can have at a time

From: Jerry G. Chiuan <jerry_at_oridus.com>
Date: Wed, 25 Feb 2004 10:14:12 -0800

> > is there limit for number of curl handles application can have at a
time?
>
> No. At least libcurl doesn't impose any limits. Your operating system
might
> though. Since libcurl uses at least one (up to several) sockets, you might
run
> out of allowed number of sockets when use extreme amounts of handles.
>
> > each handle is associated with one tcp/ip connection?
>
> If you only do one single HTTP request, then yes. If you use FTP, then it
uses
> two. And if you use multiple requests, libcurl will keep the last N ones
alive
> in its connection cache, where N is default set to 5.

Hi Daniel,
so how can we change this N?

thanks a lot
- Jerry
Received on 2004-02-25