cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl: (18) transfer closed with at least 2727 bytes remaining

From: Richard Chen <richard_at_doubleprime.com>
Date: Thu, 20 Feb 2003 13:12:56 -0500

On Thu, Feb 20, 2003 at 04:46:23PM +0100, Daniel Stenberg wrote:
> On Thu, 20 Feb 2003, Richard Chen wrote:
>
> > Here is an example where the curl download will stall and eventually
> > timeout: (You may have to try it 3 or 4 times to encounter a hanging
> > situation)
>
> I tried it 15 times in a row, and it worked every time.
>
> > User-Agent: curl/7.9.5 (i386-redhat-linux-gnu) libcurl 7.9.5 (OpenSSL
> > 0.9.6b) (ipv6 enabled)
>
> Of course, I used a lot newer version than this! ;-)
>
> > What happens is that the speed continuously decrease until reaching zero.
> >
> > Notice that the downloaded amount is very close to 64k. I wonder if there
> > is some kind of size limit somewhere imposed.
>
> I guess that isn't unlikely. The problem is of course for you to figure out
> where and why. Is curl really the only tool that shows this problem?
>
> If so, can you upgrade to the latest version and retry?
>

Hi Daniel,

        Thanks for checking this out. I am surprised that the hanging
did not happen to you. I have several people reported hanging
in different locations in US. Perhaps you have such a fast internet
connection that 64k page is too small to reproduce the problem.

        I have installed the latest curl and I still have the same
problem when keep-alive is disabled:

$ /usr/local/bin/curl --header 'Connection: close' -o foo.html -i -v 'http://www.esteelauder.de/prod_dir/multi_prod_color_non_sorting.jhtml?categoryId=CAT1018&startIndex=1&pageNumber=1'
* About to connect() to www.esteelauder.de:80
* Connected to www.esteelauder.de (66.54.6.78) port 80
> GET /prod_dir/multi_prod_color_non_sorting.jhtml?categoryId=CAT1018&startIndex=1&pageNumber=1 HTTP/1.1
User-Agent: curl/7.10.3 (i586-pc-linux-gnu) libcurl/7.10.3 OpenSSL/0.9.6g zlib/1.1.3
Host: www.esteelauder.de
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Connection: close

  % Total % Received % Xferd Average Speed Time Curr.
                                 Dload Upload Total Current Left Speed
100 65538 0 65538 0 0 247 0 --:--:-- 0:04:24 --:--:-- 0

Notice that after 4 minutes it was still hanging. What is the timeout
for curl fetch? What is it is waiting for? The server sent back:

HTTP/1.1 200 OK
Date: Thu, 20 Feb 2003 17:33:44 GMT
Server: Apache/1.3.26 (Unix) mod_ssl/2.8.9 OpenSSL/0.9.6c
Set-Cookie: JSESSIONID=YMGX445PAQXN0CQCFUNSFEQKAIWROJYG;path=/
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset="ISO-8859-1"

The connection header is to close and there is no spec about how
much data is coming back.

Any further idea about what is going on?

Thanks

Richard

-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
Received on 2003-02-20