curl-library
Re: Randomly no response from IIS, but *only* with cURL
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 7 Feb 2012 13:11:09 +0100 (CET)
Date: Tue, 7 Feb 2012 13:11:09 +0100 (CET)
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.htmlReceived on 2012-02-07