cURL / Mailing Lists / curl-library / Single Mail

curl-library

Timout in HTTP data transfer

From: arnuld uttre <arnuld.mizong_at_gmail.com>
Date: Thu, 18 Nov 2010 13:13:30 +0530

I am using libcurl to receive some data from web server. I am using
these options:

 curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
 curl_easy_setopt(curl, CURLOPT_TIMEOUT, 100);

I am already connected to the server hence do not need
CURLOPT_CONNECTTIMEOUT options to use. I am just waiting for the data
to arrive. Web server is configured in such a way that it will send me
data after 1-2 min when I made a request. Even though I have put 100
seconds in CURLOPT_TIMEOUT, libcurl always times out just after 60
seconds. If web-server immediately sends the data then its ok but I am
unable to use a custom timeout option.

any clues ?

--
http://uttre.wordpress.com/2008/05/14/the-lost-love-of-mine/
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-11-18