curl-library
libcurl : Issue with Threads and slower response time
Date: Thu, 4 Sep 2008 22:43:26 +0530
Hi Dan,
These are the stats measured using getinfo.
curl_easy_perform()
|
|--NAMELOOKUP : 0.0028
|--|--CONNECT : 0.0679
|--|--|--APPCONNECT : N/A (not using 7.19.0)
|--|--|--|--PRETRANSFER : 0.4945
|--|--|--|--|--STARTTRANSFER : 0.5810
|--|--|--|--|--|--TOTAL : 3.2329
|--|--|--|--|--|--REDIRECT : 0.0000
I have set CURLOPT_FRESH_CONNECT and CURLOPT_FORBID_REUSE to 0 for enabling
connection reuse.
curl_easy_setopt(pcurl, CURLOPT_FRESH_CONNECT, 0);
curl_easy_setopt(pcurl, CURLOPT_FORBID_REUSE ,0);
Is there any other method to enable connection reuse?
Can we also get the time taken to complete the request and time taken to
receive the response?
-San.
Message: 6
Date: Wed, 3 Sep 2008 23:16:48 -0700
From: Dan Fandrich <dan_at_coneharvesters.com>
Subject: Re: libcurl : Issue with Threads and slower response time
To: curl-library_at_cool.haxx.se
Message-ID: <20080904061647.GA17765_at_coneharvesters.com>
Content-Type: text/plain; charset=us-ascii
On Thu, Sep 04, 2008 at 11:23:04AM +0530, Sandeep Kale wrote:
> Is there any way to reuse the connection or keeping the previous
connection
> alive? Will connection reuse solve both the issues (OpenSSL contexts and
> Response time)?
curl normally keeps the connection alive when it can. If in your case
that isn't being done for some reason, then enabling it will definitely
reduce the overhead.
>>> Dan
Received on 2008-09-04