diff --git a/doc/aria2c.1.asciidoc b/doc/aria2c.1.asciidoc index 15aab1d2..198099d4 100644 --- a/doc/aria2c.1.asciidoc +++ b/doc/aria2c.1.asciidoc @@ -42,6 +42,7 @@ Basic Options URI. This optional line must start with one or more white spaces and have one option per single line. See *<<_input_file, Input File>>* subsection for details. + See also *<>* option. [[aria2_optref_log]]*-l*, *--log*=LOG:: The file name of the log file. If '-' is specified, log is written to @@ -916,6 +917,16 @@ Advanced Options and standard input, standard output and standard error will be redirected to '/dev/null'. Default: 'false' +[[aria2_optref_deferred_input]]*--deferred-input*[='true'|'false']:: + + If 'true' is given, aria2 does not read all URIs and options from file + specified by *<>* option at startup, + but it reads one by one when it + needs later. This may reduce memory usage if input file contains a + lot of URIs to download. If 'false' is given, aria2 reads all URIs + and options at startup. + Default: 'false' + [[aria2_optref_disable_ipv6]]*--disable-ipv6*[='true'|'false']:: Disable IPv6. This is useful if you have to use broken DNS and want diff --git a/src/MultiUrlRequestInfo.cc b/src/MultiUrlRequestInfo.cc index d1987f48..a754c1c6 100644 --- a/src/MultiUrlRequestInfo.cc +++ b/src/MultiUrlRequestInfo.cc @@ -60,6 +60,7 @@ #include "fmt.h" #include "SocketCore.h" #include "OutputFile.h" +#include "UriListParser.h" #ifdef ENABLE_SSL # include "TLSContext.h" #endif // ENABLE_SSL @@ -143,11 +144,13 @@ MultiUrlRequestInfo::MultiUrlRequestInfo (const std::vector >& requestGroups, const SharedHandle