2010-07-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Added max-connection-per-server, min-split-size and
	conditional-get option to -i list option and aria2rpc.
	* doc/aria2c.1.txt
	* doc/xmlrpc/aria2rpc
	* src/download_helper.cc
pull/1/head
Tatsuhiro Tsujikawa 2010-07-19 04:46:04 +00:00
parent 78601d277e
commit d8ce5db577
6 changed files with 69 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2010-07-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added max-connection-per-server, min-split-size and
conditional-get option to -i list option and aria2rpc.
* doc/aria2c.1.txt
* doc/xmlrpc/aria2rpc
* src/download_helper.cc
2010-07-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net> 2010-07-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed double free bug Fixed double free bug

View File

@ -2576,6 +2576,39 @@ max\-resume\-failure\-tries
http\-accept\-gzip http\-accept\-gzip
.RE .RE
.sp .sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
max\-connection\-per\-server
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
min\-split\-size
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
conditional\-get
.RE
.sp
These options have exactly same meaning of the ones in the command\-line options, but it just applies to the URIs it belongs to\&. These options have exactly same meaning of the ones in the command\-line options, but it just applies to the URIs it belongs to\&.
.sp .sp
For example, the content of uri\&.txt is For example, the content of uri\&.txt is

View File

@ -2987,6 +2987,21 @@ max-resume-failure-tries
http-accept-gzip http-accept-gzip
</p> </p>
</li> </li>
<li>
<p>
max-connection-per-server
</p>
</li>
<li>
<p>
min-split-size
</p>
</li>
<li>
<p>
conditional-get
</p>
</li>
</ul></div> </ul></div>
<div class="paragraph"><p>These options have exactly same meaning of the ones in the <div class="paragraph"><p>These options have exactly same meaning of the ones in the
command-line options, but it just applies to the URIs it belongs to.</p></div> command-line options, but it just applies to the URIs it belongs to.</p></div>
@ -4242,7 +4257,7 @@ files in the program, then also delete it here.</p></div>
<div id="footnotes"><hr /></div> <div id="footnotes"><hr /></div>
<div id="footer"> <div id="footer">
<div id="footer-text"> <div id="footer-text">
Last updated 2010-07-19 00:15:05 JST Last updated 2010-07-19 13:44:22 JST
</div> </div>
</div> </div>
</body> </body>

View File

@ -1261,6 +1261,9 @@ of URIs. These optional lines must start with white space(s).
* always-resume * always-resume
* max-resume-failure-tries * max-resume-failure-tries
* http-accept-gzip * http-accept-gzip
* max-connection-per-server
* min-split-size
* conditional-get
These options have exactly same meaning of the ones in the These options have exactly same meaning of the ones in the
command-line options, but it just applies to the URIs it belongs to. command-line options, but it just applies to the URIs it belongs to.

View File

@ -201,6 +201,11 @@ OptionParser.new do |opt|
opt.on("--http-accept-gzip [BOOL]",["true","false"]){|val| opt.on("--http-accept-gzip [BOOL]",["true","false"]){|val|
options["http-accept-gzip"]=val||"true" options["http-accept-gzip"]=val||"true"
} }
opt.on("--max-connection-per-server NUM"){|val| options["max-connection-per-server"]=val}
opt.on("--min-split-size SIZE"){|val| options["min-split-size"]=val}
opt.on("--conditional-get [BOOL]",["true","false"]){|val|
options["conditional-get"]=val||"true"
}
opt.on("--max-overall-download-limit LIMIT"){|val| options["max-overall-download-limit"]=val} opt.on("--max-overall-download-limit LIMIT"){|val| options["max-overall-download-limit"]=val}
opt.on("--max-overall-upload-limit LIMIT"){|val| options["max-overall-upload-limit"]=val} opt.on("--max-overall-upload-limit LIMIT"){|val| options["max-overall-upload-limit"]=val}
opt.on("-j","--max-concurrent-downloads N"){|val| options["max-concurrent-downloads"]=val} opt.on("-j","--max-concurrent-downloads N"){|val| options["max-concurrent-downloads"]=val}

View File

@ -159,7 +159,10 @@ const std::set<std::string>& listRequestOptions()
PREF_REMOVE_CONTROL_FILE, PREF_REMOVE_CONTROL_FILE,
PREF_ALWAYS_RESUME, PREF_ALWAYS_RESUME,
PREF_MAX_RESUME_FAILURE_TRIES, PREF_MAX_RESUME_FAILURE_TRIES,
PREF_HTTP_ACCEPT_GZIP PREF_HTTP_ACCEPT_GZIP,
PREF_MAX_CONNECTION_PER_SERVER,
PREF_MIN_SPLIT_SIZE,
PREF_CONDITIONAL_GET
}; };
static std::set<std::string> requestOptions static std::set<std::string> requestOptions
(vbegin(REQUEST_OPTIONS), vend(REQUEST_OPTIONS)); (vbegin(REQUEST_OPTIONS), vend(REQUEST_OPTIONS));