On Tue, 7 Feb 2012, Felix E. Klee wrote:

I now set "CURLOPT_FRESH_CONNECT" to 1

Setting "CURLOPT_FORBID_REUSE" to 1 should have the same effect, right?

CURLOPT_FRESH_CONNECT makes you not re-use any exiting connections from the pool when you start a new request. It enforces a fresh connect to be done.

CURLOPT_FORBID_REUSE will prevent libcurl from keeping the connection alive after this request for further re-use in subsequent requests.

Both options can seriously hamper your performance if you intend to do many requests against the same server.

--

 / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to