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: None
Privacy: PublicAssigned to: None
Originator Name: Waleed HamraOriginator Email: -unavailable-
Open/Closed: OpenRelease: 1.12
Operating System: GNU/LinuxReproducibility: Every Time
Fixed Release: NonePlanned 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.


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 None (Submitted the item)

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



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup