[downloader:http] add 'chunk-size' option (#3143)
and double the previous default from 16384 (2**14) to 32768 (2**15)
This commit is contained in:
@@ -3009,7 +3009,7 @@ Description
|
||||
Any file smaller/larger than this limit will not be downloaded.
|
||||
|
||||
Possible values are valid integer or floating-point numbers
|
||||
optionally followed by one of ``k``, ``m``. ``g``, ``t`` or ``p``.
|
||||
optionally followed by one of ``k``, ``m``. ``g``, ``t``, or ``p``.
|
||||
These suffixes are case-insensitive.
|
||||
|
||||
|
||||
@@ -3079,7 +3079,7 @@ Description
|
||||
Maximum download rate in bytes per second.
|
||||
|
||||
Possible values are valid integer or floating-point numbers
|
||||
optionally followed by one of ``k``, ``m``. ``g``, ``t`` or ``p``.
|
||||
optionally followed by one of ``k``, ``m``. ``g``, ``t``, or ``p``.
|
||||
These suffixes are case-insensitive.
|
||||
|
||||
|
||||
@@ -3140,6 +3140,22 @@ Description
|
||||
contains JPEG/JFIF data.
|
||||
|
||||
|
||||
downloader.http.chunk-size
|
||||
--------------------------
|
||||
Type
|
||||
``integer`` or ``string``
|
||||
Default
|
||||
``32768``
|
||||
Example
|
||||
``"50k"``, ``"0.8M"``
|
||||
Description
|
||||
Number of bytes per downloaded chunk.
|
||||
|
||||
Possible values are integer numbers
|
||||
optionally followed by one of ``k``, ``m``. ``g``, ``t``, or ``p``.
|
||||
These suffixes are case-insensitive.
|
||||
|
||||
|
||||
downloader.http.headers
|
||||
-----------------------
|
||||
Type
|
||||
|
||||
@@ -381,6 +381,7 @@
|
||||
"http":
|
||||
{
|
||||
"adjust-extensions": true,
|
||||
"chunk-size": 32768,
|
||||
"headers": null
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user