cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl waits indefinitely for data

From: arnuld uttre <arnuld.mizong_at_gmail.com>
Date: Mon, 24 Jan 2011 10:28:24 +0530

> On Fri, Jan 14, 2011 at 2:12 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:

>> On Wed, 12 Jan 2011, arnuld uttre wrote:
>> Have not been able to reproduce the problem with my small code (may take
>> 2-3 more days for curl) but here is what I got from CURLOPT_VERBOSE from
>> that proprietary software run

>> * About to connect() to 192.168.0.230 port 80
>> *   Trying 209.237.150.20... * connected
>> * Connected to 192.168.0.230 (209.237.150.20) port 80
>>>
>>> GET /files/get_data.php HTTP/1.1
>>
>> Host: 192.168.0.230
>> Accept: */*
>>
>> If you look you will see a connection is being after every approximately
>> 30 seconds but in last paragrapgh of output, after that last line of Host:
>> 192.168.0.230 Accept: */* it hangs on there forever, it never makes any
>> connection again. Thats the problem.

> Right, but if libcurl doesn't get any data it will just wait. And wait.
> Forever.

> You need to give it a timeout or some kind of condition when it should stop
> waiting.

Even with latest stable libcurl , CURL_TIMEOUT option does not work. I
have compiled with c-ares supprt though. So libcurl is still waiting
for data from last 2 days :( . CURLOPT_VERBOSE has same kind of output

[arnuld_at_dune ~]$ curl-config --cflags
-I/usr/local/include
[arnuld_at_dune ~]$ curl-config --version
libcurl 7.21.3
[arnuld_at_dune ~]$ curl-config --features
SSL
IPv6
libz
AsynchDNS
IDN
NTLM
[arnuld_at_dune ~]$

-- 
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 2011-01-24