bugGNU Wget - Bugs: bug #20361, Wget fails with repeated HEAD...

 
 

bug #20361: Wget fails with repeated HEAD attempts

Submitted by:  Micah Cowan <micahcowan>
Submitted on:  Fri 06 Jul 2007 05:43:21 PM UTC  
 
Category: NoneSeverity: 4 - Important
Priority: 5 - NormalStatus: Fixed In Repository
Privacy: PublicAssigned to: Mauro Tortonesi <mtortonesi>
Originator Name: Christopher G LewisOpen/Closed: Closed
Release: NoneOperating System: Microsoft Windows
Reproducibility: NoneFixed Release: None
Planned Release: 1.11Regression: None
Work Required: NonePatch Included: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 02 Aug 2007 05:34:58 AM UTC, comment #1:

This had been broken by the preliminary work on bug 20323, which were backed out in r2259. Should probably retest this once the finished fixes for bug 20323 are merged into trunk.

Micah Cowan <micahcowan>
Fri 06 Jul 2007 05:43:21 PM UTC, original submission:

Apparently, Wget issues repeated HEAD attempts, which succeed (and then the connection closes). There are two issues:

1. Unless we're timestamping, wget shouldn't be issuing HEAD attempts.
2. The HEADs were succeeding, and wget was acting like it wanted a content body (or else it doesn't know how to handle connection closes during what it expects to be keep-alive).

From the mailing list: "WGET Dev branch BROKEN"

OK -

(First of all, welcome to Micah - thanks for working with us :-)

Sorry I didn't catch this earlier, but it looks like something broke in the dev branch recently.

I've got a batch that autobuilds the SVN dev tree and posts the results to my windows wget page. Part of that build is to grab the cacert.PEM from the curl site.

Recently, the SRC\WGET.EXE file wasn't able to download this URL http://curl.haxx.se/ca/cacert.pem

Here are some debug outputs:

------- WGET 1.10.2 (WORKS) -------

C:\CVSProjects\Wget>wget -V --debug http://curl.haxx.se/ca/cacert.pem
GNU Wget 1.10.2

Copyright (C) 2005 Free Software Foundation, Inc.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

Originally written by Hrvoje Niksic <hniksic@xemacs.org>.

C:\CVSProjects\Wget>wget --debug http://curl.haxx.se/ca/cacert.pem
DEBUG output created by Wget 1.10.2 on Windows.

--00:43:47-- http://curl.haxx.se/ca/cacert.pem
=> `cacert.pem'
Resolving curl.haxx.se... seconds 0.00, 91.191.140.28
Caching curl.haxx.se => 91.191.140.28
Connecting to curl.haxx.se|91.191.140.28|:80... seconds 0.00, connected.
Created socket 1948.
Releasing 0x00392788 (new refcount 1).

---request begin---
GET /ca/cacert.pem HTTP/1.0
User-Agent: Wget/1.10.2
Accept: /
Host: curl.haxx.se
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 200 OK
Date: Thu, 05 Jul 2007 05:43:29 GMT
Server: Apache/1.3.33 (Debian GNU/Linux) PHP/4.3.10-19 mod_ssl/2.8.22 OpenSSL/0.9.7e
Last-Modified: Wed, 04 Jul 2007 03:14:18 GMT
ETag: "15e9b8-68168-468b108a"
Accept-Ranges: bytes
Content-Length: 426344
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/plain; charset=iso-8859-1

---response end---
200 OK
Registered socket 1948 for persistent reuse.
Length: 426,344 (416K) [text/plain]

100%[============================================================================>] 426,344 73.27K/s ETA 00:00

00:43:53 (67.41 KB/s) - `cacert.pem' saved [426344/426344]

------- WGET TRUNK -------
C:\CVSProjects\Wget>trunk\src\wget -V --debug http://curl.haxx.se/ca/cacert.pem
GNU Wget 1.10+devel

Copyright (C) 2006 Free Software Foundation, Inc.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

Originally written by Hrvoje Niksic <hniksic@xemacs.org>.

Currently maintained by Mauro Tortonesi <mauro@ferrara.linux.it>.

C:\CVSProjects\Wget>trunk\src\wget --debug http://curl.haxx.se/ca/cacert.pem
DEBUG output created by Wget 1.10+devel on Windows-MSVC.

--00:45:17-- http://curl.haxx.se/ca/cacert.pem
Resolving curl.haxx.se... seconds 0.00, 91.191.140.28
Caching curl.haxx.se => 91.191.140.28
Connecting to curl.haxx.se|91.191.140.28|:80... seconds 0.00, connected.
Created socket 1948.
Releasing 0x00393450 (new refcount 1).

---request begin---
HEAD /ca/cacert.pem HTTP/1.0
User-Agent: Wget/1.10+devel
Accept: /
Host: curl.haxx.se
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 200 OK
Date: Thu, 05 Jul 2007 05:44:59 GMT
Server: Apache/1.3.33 (Debian GNU/Linux) PHP/4.3.10-19 mod_ssl/2.8.22 OpenSSL/0.9.7e
Last-Modified: Wed, 04 Jul 2007 03:14:18 GMT
ETag: "15e9b8-68168-468b108a"
Accept-Ranges: bytes
Content-Length: 426344
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/plain; charset=iso-8859-1

---response end---
200 OK
Registered socket 1948 for persistent reuse.
Length: 426344 (416K) [text/plain]
00:45:17 (0.00 B/s) - Connection closed at byte 0. Retrying.

--00:45:17-- http://curl.haxx.se/ca/cacert.pem
Reusing existing connection to curl.haxx.se:80.
Reusing fd 1948.

---request begin---
HEAD /ca/cacert.pem HTTP/1.0
User-Agent: Wget/1.10+devel
Accept: /
Host: curl.haxx.se
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 200 OK
Date: Thu, 05 Jul 2007 05:44:59 GMT
Server: Apache/1.3.33 (Debian GNU/Linux) PHP/4.3.10-19 mod_ssl/2.8.22 OpenSSL/0.9.7e
Last-Modified: Wed, 04 Jul 2007 03:14:18 GMT
ETag: "15e9b8-68168-468b108a"
Accept-Ranges: bytes
Content-Length: 426344
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Content-Type: text/plain; charset=iso-8859-1

---response end---
200 OK
Length: 426344 (416K) [text/plain]
00:45:17 (0.00 B/s) - Connection closed at byte 0. Retrying.

<<< 500 lines of the same >>>

--00:45:20-- (try:20) http://curl.haxx.se/ca/cacert.pem
Reusing existing connection to curl.haxx.se:80.
Reusing fd 1948.

---request begin---
HEAD /ca/cacert.pem HTTP/1.0
User-Agent: Wget/1.10+devel
Accept: /
Host: curl.haxx.se
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 200 OK
Date: Thu, 05 Jul 2007 05:45:03 GMT
Server: Apache/1.3.33 (Debian GNU/Linux) PHP/4.3.10-19 mod_ssl/2.8.22 OpenSSL/0.9.7e
Last-Modified: Wed, 04 Jul 2007 03:14:18 GMT
ETag: "15e9b8-68168-468b108a"
Accept-Ranges: bytes
Content-Length: 426344
Keep-Alive: timeout=15, max=80
Connection: Keep-Alive
Content-Type: text/plain; charset=iso-8859-1

---response end---
200 OK
Length: 426344 (416K) [text/plain]
00:45:20 (0.00 B/s) - Connection closed at byte 0. Giving up.

Micah Cowan <micahcowan>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtortonesi (Updated the item)
  • -unavailable- added by micahcowan (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 02 Aug 2007 05:34:58 AM UTCmicahcowanStatusNone=>Fixed In Repository
      Open/ClosedOpen=>Closed
    Sun 15 Jul 2007 10:04:16 PM UTCrmnCarbon-Copy-=>Added rmn
    Sat 07 Jul 2007 03:48:21 PM UTCmtortonesiAssigned toNone=>mtortonesi
    Fri 06 Jul 2007 05:43:21 PM UTCmicahcowanCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1