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.

--

 / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to