curl-library
RE: Aborting curl_easy_perform if no response
Date: Wed, 19 Mar 2008 04:55:52 -0700
CURLOPT_TIMEOUT is nothing to do with how long you want to keep your connection. Setting this value makes your curl_easy_perform() return with an error if your server doesn’t respond within the specified timeout period. But be aware that your server may have idle timeout which might close your connection if it connection remains idle for long time.
~Kumar
_____
From: curl-library-bounces_at_cool.haxx.se [mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Vijay
Sent: Wednesday, March 19, 2008 5:12 PM
To: curl-library_at_cool.haxx.se
Subject: Re: Aborting curl_easy_perform if no response
I can use CURLOPT_TIMEOUT function to set the timeout.
But my requirement is if i post a request and got a response, i will use the same connection
and post a query later any time(no time limit)
In this case will it help me?
On Wed, Mar 19, 2008 at 10:30:30AM +0530, Vijay wrote:
> when I do an curl_easy_perform()
> and the server accepts the message, but not doing any response.
> So my call is in block state itself.
> Is there anyway to abort or set timeout if there are no response for long time.
Yes to both. Read the curl_easy_setopt man page to find out how.
>>> Dan
On Wed, Mar 19, 2008 at 10:30 AM, Vijay <HYPERLINK "mailto:nags.vijay_at_gmail.com"nags.vijay_at_gmail.com> wrote:
when I do an curl_easy_perform()
and the server accepts the message, but not doing any response.
So my call is in block state itself.
Is there anyway to abort or set timeout if there are no response for long time.
--
VIJAY
--
VIJAY
Internal Virus Database is out-of-date.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.10.0/887 - Release Date: 7/5/2007 1:55 PM
Internal Virus Database is out-of-date.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.10.0/887 - Release Date: 7/5/2007 1:55 PM
Received on 2008-03-19