cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: How to reduce the connections pool ?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 29 Aug 2008 15:42:30 +0200 (CEST)

On Thu, 28 Aug 2008, Luciano M.B wrote:

> I use about 45 simultaneos process in spider but it keep open too much
> connections with Orkut. With 45 process it keep alive more than 5000
> conections, i need to reduce this.

I don't see how your program keeps any connection alive. After the easy handle
is closed it keeps no connections open (and it can't do that either).

> I try to reduce CURLOPT_MAXCONNECTS value but i dont see results.

CURLOPT_MAXCONNECTS limits the amount of connection a single easy handle keeps
open. You just seem to do one connection per handle.

-- 
  / daniel.haxx.se
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2008-08-29