[wget-notify] [bug #23613] Wget aborts for zero-length content

Micah Cowan INVALID.NOREPLY at gnu.org
Mon Jun 16 19:55:31 PDT 2008


URL:
  <http://savannah.gnu.org/bugs/?23613>

                 Summary: Wget aborts for zero-length content
                 Project: GNU Wget
            Submitted by: micahcowan
            Submitted on: Monday 06/16/2008 at 19:55
                Category: Crash/Freeze/Infloop
                Severity: 4 - Important
                Priority: 5 - Normal
                  Status: In Progress
                 Privacy: Public
             Assigned to: micahcowan
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.11.3
        Operating System: None
         Reproducibility: None
           Fixed Release: None
         Planned Release: 1.12
              Regression: None
           Work Required: 0 - Hours
          Patch Included: None

    _______________________________________________________

Details:

Run "wget -d -c booksense.com/robots.txt" twice. The second time (when the
content already exists locally), gives the following debug logs:


---request begin---
GET /robots.txt HTTP/1.0
Range: bytes=17100-
User-Agent: Wget/1.11.3
Accept: */*
Host: www.booksense.com
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.0 200 OK
Server: Resin/3.0.21
ETag: "6bfB66L/rIP"
Last-Modified: Fri, 07 May 2004 16:45:03 GMT
Accept-Ranges: bytes
Cache-Control: max-age=5
Expires: Tue, 17 Jun 2008 02:11:36 GMT
Content-Type: text/plain
Content-Length: 0
Date: Tue, 17 Jun 2008 02:11:31 GMT

---response end---
200 OK
Length: 0 [text/plain]
Saving to: `robots.txt'

     0K                                                         0% 0.00 =0s

Closed fd 3


...and aborts. In the historical place for aborting where Content-Length:


2804                /* Getting here would mean reading more data than
2805                   requested with content-length, which we never do.  */


This problem occurs for 1.11.3 (and probably prior), as well as for
bleeding-edge development sources.

Thanks to apo from IRC for discovering this.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?23613>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



More information about the wget-notify mailing list