bugGNU Wget - Bugs: bug #33967, resuming an FTP download shows...


bug #33967: resuming an FTP download shows wrong progreess bar and percentage

Submitted by:  None
Submitted on:  Mon 08 Aug 2011 01:03:20 AM UTC  
Category: User InterfaceSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: None
Originator Name: Waleed HamraOriginator Email: -unavailable-
Open/Closed: OpenRelease: 1.12
Operating System: GNU/LinuxReproducibility: Every Time
Fixed Release: 1.15Planned Release: None
Regression: NoneWork Required: None
Patch Included: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Fri 14 Aug 2015 03:32:11 PM UTC, comment #1:

This is no longer reproducible in Wget 1.15. It was fixed with commits 6ef8c69c9d34bbb750ddcd2062e668fb0d941cff and 29305e059ff2095060eef939f653c1b5deecd6d9.

This should be closed.

Ander Juaristi <ajuaristi>
Mon 08 Aug 2011 01:03:20 AM UTC, original submission:

i will demonstrate with an example:

$ wget ftp://usernmae:password@example.com/file -c
--2011-08-08 03:16:42-- ftp://username:password*@example.com/file
=> `file'
Resolving example.com... xxx.xxx.xxx.xxx, yyy.yyy.yyy.yyy
Connecting to example.com|xxx.xxx.xxx.xxx|:21... connected.
Logging in as username ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD not needed.
==> SIZE file ... 549807025
==> PASV ... done. ==> REST 162791124 ... done.
==> RETR file ... done.
Length: 387015901 (369M), 224224777 (214M) remaining (unauthoritative)

the file is around 540 megabytes, as you can see from the SIZE command. i already have around 160 megabytes downloaded from a previous session, i just want to continue now.
in the last line, it says Length is 369 megabytes. now this is really the remaining data, not the full length of the file, but wget treats it so, and calculates that what's remaining is 214 megabytes, when in fact, much more than that is remaining.

so the problem in a nutchell, is that wget should rely on info from the SIZE command to calculate length, remaining, and draw a proper progress bar.
what is happening now, is that progress bar reaches 100%, but data would still be flowing in normally till the file really ends.

thanks in advance for your time.



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

Attach File(s):

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 rockdaboot (Updated the item)
  • -unavailable- added by ajuaristi (Posted a comment)
  • -unavailable- added by None (Submitted the item)

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



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 14 Aug 2015 03:43:29 PM UTCrockdabootStatusNone=>Fixed
      Fixed ReleaseNone=>1.15

    Back to the top

    Powered by Savane 3.1-cleanup