cURL / Mailing Lists / curl-library / Single Mail

curl-library

transfer closed with bytes remaining to read Windows 7 issue

From: Bill Hoffman <bill.hoffman_at_kitware.com>
Date: Tue, 04 Dec 2012 14:47:54 -0500

I am running into an odd issue. We are seeing random failures in http
downloads using curl. The failures only show up on windows 7 machines.
  Linux, OSX and Windows XP work. We have built curl from source and
also used several different windows binaries and all show the same
issue. We have tried serving the files from two different linux
machines running Apache one debian and one centos. Some other odd things:

- the content of the file seems to affect the frequency of the error.
Same size random file works more often.

- curl from linux/OSX/window XP windows Server 2003 work.

- It should get the file really fast. However, several times when we
run it gets most of the file, then curl gets stuck in the system
select() call on sockets for a long time.

Here is maybe some relevant information, this is the curl built into
CMake, printing out the error string and header info:

18;"Transferred a partial file" About to connect() to
riva.kitwarein.com port 80 (#0)
   Trying 192.168.1.194... connected
Connected to riva.kitwarein.com (192.168.1.194) port 80 (#0)
GET /boost-cmake-1.49.0.tar.gz HTTP/1.1
Host: riva.kitwarein.com
Accept: */*

HTTP/1.1 200 OK
Date: Tue, 04 Dec 2012 19:40:43 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Wed, 01 Aug 2012 17:14:18 GMT
ETag: "c9d8001-343fe47-4c6376cd14e80"
Accept-Ranges: bytes
Content-Length: 54787655
Connection: close
Content-Type: application/x-gzip

Same file different server:
18;"Transferred a partial file" About to connect() to
vesper.kitwarein.com port 80 (#0)
   Trying 192.168.1.236... connected
Connected to vesper.kitwarein.com (192.168.1.236) port 80 (#0)
GET /boost-cmake-1.49.0.tar.gz HTTP/1.1
Host: vesper.kitwarein.com
Accept: */*

HTTP/1.1 200 OK
Date: Tue, 04 Dec 2012 19:45:35 GMT
Server: Apache/2.2.22 (Debian)
Last-Modified: Mon, 03 Dec 2012 20:42:25 GMT
ETag: "567-343fe47-4cff8c96c4e40"
Accept-Ranges: bytes
Content-Length: 54787655
Content-Type: application/x-gzip

Here is a curl binary with the bytes remaining error:

$
~/workspace/curl-7.28.1-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32/curl
-O http://vesper.kitwarein.com/test/boost-cmake-1.49.0.tar.bz2
   % Total % Received % Xferd Average Speed Time Time Time
  Current
                                  Dload Upload Total Spent Left
  Speed
  99 44.0M 99 44.0M 0 0 6507k 0 0:00:06 0:00:06
--:--:-- 0
curl: (18) transfer closed with 8224 bytes remaining to read

Any ideas or tips on how to approach debugging this?

Thanks.

-Bill
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-12-04