From 939a372727b2f27e683a23ac38928b82de550376 Mon Sep 17 00:00:00 2001
From: Tatsuhiro Tsujikawa
Date: Sun, 1 Aug 2010 05:59:35 +0000
Subject: [PATCH] 2010-08-01 Tatsuhiro Tsujikawa
Added --enable-async-dns6 option. This option enables IPv6 name
resolution in asynchronous DNS resolver. This option will be
ignored when --async-dns=false.
* doc/aria2c.1.txt
* src/AbstractCommand.cc
* src/AsyncNameResolver.cc
* src/AsyncNameResolver.h
* src/DHTEntryPointNameResolveCommand.cc
* src/OptionHandlerFactory.cc
* src/download_helper.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
---
ChangeLog | 16 ++++++++++++++++
doc/aria2c.1 | 22 ++++++++++++++++++++--
doc/aria2c.1.html | 17 ++++++++++++++++-
doc/aria2c.1.txt | 7 +++++++
src/AbstractCommand.cc | 8 +++++++-
src/AsyncNameResolver.cc | 23 ++++++++++++++++-------
src/AsyncNameResolver.h | 3 ++-
src/DHTEntryPointNameResolveCommand.cc | 8 +++++++-
src/OptionHandlerFactory.cc | 11 +++++++++++
src/download_helper.cc | 3 ++-
src/prefs.cc | 2 ++
src/prefs.h | 2 ++
src/usage_text.h | 4 ++++
13 files changed, 112 insertions(+), 14 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 1e61769c..febf602b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2010-08-01 Tatsuhiro Tsujikawa
+
+ Added --enable-async-dns6 option. This option enables IPv6 name
+ resolution in asynchronous DNS resolver. This option will be
+ ignored when --async-dns=false.
+ * doc/aria2c.1.txt
+ * src/AbstractCommand.cc
+ * src/AsyncNameResolver.cc
+ * src/AsyncNameResolver.h
+ * src/DHTEntryPointNameResolveCommand.cc
+ * src/OptionHandlerFactory.cc
+ * src/download_helper.cc
+ * src/prefs.cc
+ * src/prefs.h
+ * src/usage_text.h
+
2010-07-31 Tatsuhiro Tsujikawa
Use hostname of original URI when counting hostname in
diff --git a/doc/aria2c.1 b/doc/aria2c.1
index 766b8c6a..e346453c 100644
--- a/doc/aria2c.1
+++ b/doc/aria2c.1
@@ -2,12 +2,12 @@
.\" Title: aria2c
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.75.2
-.\" Date: 07/19/2010
+.\" Date: 08/01/2010
.\" Manual: Aria2 Manual
.\" Source: Aria2 1.10.0
.\" Language: English
.\"
-.TH "ARIA2C" "1" "07/19/2010" "Aria2 1\&.10\&.0" "Aria2 Manual"
+.TH "ARIA2C" "1" "08/01/2010" "Aria2 1\&.10\&.0" "Aria2 Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
@@ -1127,6 +1127,13 @@ Disable IPv6\&. This is useful if you have to use broken DNS and want to avoid t
\fIfalse\fR
.RE
.PP
+\fB\-\-enable\-async\-dns6\fR[=\fItrue\fR|\fIfalse\fR]
+.RS 4
+Enable IPv6 name resolution in asynchronous DNS resolver\&. This option will be ignored when
+\fB\-\-async\-dns\fR=\fIfalse\fR\&. Default:
+\fIfalse\fR
+.RE
+.PP
\fB\-\-enable\-direct\-io\fR[=\fItrue\fR|\fIfalse\fR]
.RS 4
Enable directI/O, which lowers cpu usage while allocating/checking files\&. Turn off if you encounter any error\&. Default:
@@ -2612,6 +2619,17 @@ min\-split\-size
conditional\-get
.RE
.sp
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+enable\-async\-dns6
+.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\&.
.sp
For example, the content of uri\&.txt is
diff --git a/doc/aria2c.1.html b/doc/aria2c.1.html
index 1b2a2534..9ad50db8 100644
--- a/doc/aria2c.1.html
+++ b/doc/aria2c.1.html
@@ -1955,6 +1955,16 @@ writes the piece to the appropriate files.
+--enable-async-dns6[=true|false]
+
+
+
+ Enable IPv6 name resolution in asynchronous DNS resolver. This
+ option will be ignored when --async-dns=false.
+ Default: false
+
+
+
--enable-direct-io[=true|false]
@@ -3003,6 +3013,11 @@ min-split-size
conditional-get
+
+
+enable-async-dns6
+
+
These options have exactly same meaning of the ones in the
command-line options, but it just applies to the URIs it belongs to.
@@ -4258,7 +4273,7 @@ files in the program, then also delete it here.