Introduce --http-chunk-size

This commit is contained in:
Sergey M․ 2018-01-28 13:21:45 +07:00
parent e2e18694db
commit ba515388b8
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D
4 changed files with 213 additions and 22 deletions

View file

@ -478,6 +478,11 @@ def parseOpts(overrideArguments=None):
'--no-resize-buffer',
action='store_true', dest='noresizebuffer', default=False,
help='Do not automatically adjust the buffer size. By default, the buffer size is automatically resized from an initial value of SIZE.')
downloader.add_option(
'--http-chunk-size',
dest='http_chunk_size', metavar='SIZE', default=None,
help='Size of a chunk for chunk-based HTTP downloading (e.g. 10485760 or 10M) (default is disabled). '
'May be useful for bypassing bandwidth throttling imposed by a webserver (experimental)')
downloader.add_option(
'--test',
action='store_true', dest='test', default=False,