bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] [bug #48123] wget clobbers file if partial download fails and


From: anonymous
Subject: [Bug-wget] [bug #48123] wget clobbers file if partial download fails and retry is enabled
Date: Sat, 4 Jun 2016 08:25:31 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.9) Gecko/20100101 Goanna/2.0 Firefox/38.9 PaleMoon/26.2.2

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

                 Summary: wget clobbers file if partial download fails and
retry is enabled
                 Project: GNU Wget
            Submitted by: None
            Submitted on: Sat 04 Jun 2016 08:25:29 AM UTC
                Category: Program Logic
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: linuxrocks123
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.17.1
        Operating System: None
         Reproducibility: None
           Fixed Release: None
         Planned Release: None
              Regression: None
           Work Required: None
          Patch Included: No

    _______________________________________________________

Details:

The following command:

wget http://xxx.xxx.xxx.xxx:6544/Content/GetRecording?RecordedId=770

produced the following behavior:

---

--2016-06-04 09:53:22-- 
http://xxx.xxx.xxx.xxx:6544/Content/GetRecording?RecordedId=770
Connecting to xxx.xxx.xxx.xxx:6544... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4251523932 (4.0G) [video/mp2t]
Saving to: 'GetRecording?RecordedId=770'

GetRecording?RecordedId=7  19%[======>                              ] 786.18M 
1.27KB/s    in 5h 8m    

2016-06-04 15:01:47 (43.5 KB/s) - Read error at byte 824370342/4251523932
(Connection reset by peer). Retrying.

--2016-06-04 15:01:48--  (try: 2) 
http://xxx.xxx.xxx.xxx:6544/Content/GetRecording?RecordedId=770
Connecting to 10.0.0.108:6544... failed: Connection timed out.
Retrying.

--2016-06-04 15:03:58--  (try: 3) 
http://xxx.xxx.xxx.xxx:6544/Content/GetRecording?RecordedId=770
Connecting to 10.0.0.108:6544... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4251523932 (4.0G) [video/mp2t]
Saving to: 'GetRecording?RecordedId=770'

GetRecording?RecordedId=7   0%[                                     ] 621.60K 
22.1KB/s    eta 4d 13h

---

As is indicated by the output, the partially downloaded file from try 1 was
clobbered.  Though I didn't use the -nc option or the -c option, per the man
page, I believe this is a bug, as in this case it appears that a new file
should have been created with the name "GetRecording?RecordedId=7.1".

Even if this is intended behavior, it is unexpected; I would have expected
wget to attempt to retrieve partial content on an automatic retry whether or
not I used -c.  In any case truncating the entire partially downloaded content
on a retry is extremely destructive, and I think this behavior should only
occur if explicitly requested.

My email address is scrambled because I don't want spam robots picking it up.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]