cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl waits indefinitely for data

From: arnuld uttre <arnuld.mizong_at_gmail.com>
Date: Wed, 12 Jan 2011 15:47:36 +0530

> On Mon, Jan 10, 2011 at 10:20 PM, Andre Guibert de Bruet
> <andy_at_siliconlandmark.com> wrote:

> What version of libcurl are you using? Are you able to reproduce this
> behavior with a small program that you can share with the list?

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

< HTTP/1.1 200 OK
< Date: Wed, 12 Jan 2011 04:41:38 GMT
< Server: Apache/2.2.3 (Red Hat)
< X-Powered-By: PHP/5.2.14
< Content-Length: 0
< Content-Type: text/html
* Connection #0 to host 192.168.0.230 left intact
* Closing connection #0
* 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: */*

< HTTP/1.1 200 OK
< Date: Wed, 12 Jan 2011 04:42:09 GMT
< Server: Apache/2.2.3 (Red Hat)
< X-Powered-By: PHP/5.2.14
< Content-Length: 0
< Content-Type: text/html
* Connection #0 to host 192.168.0.230 left intact
* Closing connection #0
* 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: */*

< HTTP/1.1 200 OK
< Date: Wed, 12 Jan 2011 04:42:41 GMT
< Server: Apache/2.2.3 (Red Hat)
< X-Powered-By: PHP/5.2.14
< Content-Length: 0
< Content-Type: text/html
* Connection #0 to host 192.168.0.230 left intact
* Closing connection #0
* 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: */*

< HTTP/1.1 200 OK
< Date: Wed, 12 Jan 2011 04:43:12 GMT
< Server: Apache/2.2.3 (Red Hat)
< X-Powered-By: PHP/5.2.14
< Content-Length: 0
< Content-Type: text/html
* Connection #0 to host 192.168.0.230 left intact
* Closing connection #0
* 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: */*

< HTTP/1.1 200 OK
< Date: Wed, 12 Jan 2011 04:43:43 GMT
< Server: Apache/2.2.3 (Red Hat)
< X-Powered-By: PHP/5.2.14
< Content-Length: 0
< Content-Type: text/html
* Connection #0 to host 192.168.0.230 left intact
* Closing connection #0
* 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: */*

< HTTP/1.1 200 OK
< Date: Wed, 12 Jan 2011 04:44:15 GMT
< Server: Apache/2.2.3 (Red Hat)
< X-Powered-By: PHP/5.2.14
< Content-Length: 0
< Content-Type: text/html
* Connection #0 to host 192.168.0.230 left intact
* Closing connection #0
* 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: */*

< HTTP/1.1 200 OK
< Date: Wed, 12 Jan 2011 04:44:47 GMT
< Server: Apache/2.2.3 (Red Hat)
< X-Powered-By: PHP/5.2.14
< Content-Length: 0
< Content-Type: text/html
* Connection #0 to host 192.168.0.230 left intact
* Closing connection #0
* 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: */*

< HTTP/1.1 200 OK
< Date: Wed, 12 Jan 2011 04:45:18 GMT
< Server: Apache/2.2.3 (Red Hat)
< X-Powered-By: PHP/5.2.14
< Content-Length: 0
< Content-Type: text/html
* Connection #0 to host 192.168.0.230 left intact
* Closing connection #0
* 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.

-- 
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-12