bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] HTTP quota bug


From: Micah Cowan
Subject: Re: [Bug-wget] HTTP quota bug
Date: Thu, 30 Apr 2009 23:46:07 -0700
User-agent: Thunderbird 2.0.0.21 (X11/20090318)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrey Semenchuk wrote:
> Hi!
> 
> As it described in documentation, when --quota option is used "download
> will be aborted when the quota is exceeded". But HTTP code has no
> corresponding lines to break download unlike FTP code. So, if some file
> is downloaded via HTTP, it will be fully downloaded and stored (no
> matter is --quota option used or not) but with additional warning when
> quota is exceeded:  "Download quota (... bytes) EXCEEDED!"

What documentation are you talking about? This is what I see:

`-Q QUOTA'
`--quota=QUOTA'
     Specify download quota for automatic retrievals.  The value can be
     specified in bytes (default), kilobytes (with `k' suffix), or
     megabytes (with `m' suffix).

     Note that quota will never affect downloading a single file.  So
     if you specify `wget -Q10k ftp://wuarchive.wustl.edu/ls-lR.gz',
     all of the `ls-lR.gz' will be downloaded.  The same goes even when
     several URLs are specified on the command-line.  However, quota is
     respected when retrieving either recursively, or from an input
     file.  Thus you may safely type `wget -Q2m -i sites'--download
     will be aborted when the quota is exceeded.

     Setting quota to 0 or to `inf' unlimits the download quota.

Which is exactly the case, whether you're talking FTP, or HTTP. It
doesn't break download in the middle of a file.

Which, yeah, I agree is counter-intuitive. But with a program like wget,
I can never be sure that changing this won't break someone's script
somewhere. Not that we shouldn't do proper quotas, but we most likely
need to add that feature as a different option.

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
Maintainer of GNU Wget and GNU Teseq
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkn6mq8ACgkQ7M8hyUobTrG7WwCfdRJPPizDdCgVPzzTPnmttQO9
vccAnAmT4jxUuORMkchVra4IeggpAdU9
=8BHG
-----END PGP SIGNATURE-----




reply via email to

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