Commit Graph

3307 Commits (bb49e440da53a2bca75c0dafd4f3888f53bf1ea7)

Author SHA1 Message Date
Tatsuhiro Tsujikawa 932c258755 Added log message when checksum validation failed. 2011-07-28 00:00:01 +09:00
Tatsuhiro Tsujikawa 4ea28cb837 Don't send basic auth header to service operated on differenct port.
When --http-auth-challenge=true, aria2 only sends basic auth header
when requested. Old implementation sends basic auth header to service
operated in different port in successive request. This change avoid
this bug.
2011-07-27 23:28:31 +09:00
Tatsuhiro Tsujikawa 02292feaba Consistent naming scheme for hash type and digest for Piece. 2011-07-27 22:50:10 +09:00
Tatsuhiro Tsujikawa 03f0774482 Consistent naming scheme for hash type and digest for DownloadContext. 2011-07-27 22:44:30 +09:00
Tatsuhiro Tsujikawa 7b86b294c9 Consistent naming scheme for hash type and digest. 2011-07-27 21:44:54 +09:00
Tatsuhiro Tsujikawa ce101f5ad2 Use HttpHeader::getIterator() instead of HttpHeader::get() 2011-07-27 21:15:54 +09:00
Tatsuhiro Tsujikawa c536e460aa Merge branch 'rfc6249' 2011-07-27 21:02:53 +09:00
Tatsuhiro Tsujikawa a533437be6 Implemented Metalink/HTTP in HTTP download.
Link header fields from first Metalink server is utilized as described
in rfc6249. We only set digest from Digest header field to
DownloadContext only when PieceStorage is not initialized(in other
words, before file size is known). After PieceStorage is initialized,
Digest header field is used to check the value is the same in digest
in DownloadContext.  Current implementation only handles
rel=duplicate.
2011-07-27 20:54:21 +09:00
Tatsuhiro Tsujikawa 67e91c3431 HttpResponse::getDigest() now returns all Digest.
In addition, HttpResponse::getMetalinkHttpEntries() does not check
validity of URI. It is checked when we add it to FileEntry.
2011-07-27 19:32:35 +09:00
Tatsuhiro Tsujikawa 7c317de4e7 Added Metalink/HTTP Link and Digest header field parser. 2011-07-26 23:41:21 +09:00
Tatsuhiro Tsujikawa 9ff60ac477 Added struct for Metalink/HTTP 2011-07-26 23:19:54 +09:00
Tatsuhiro Tsujikawa 3b9a751757 Lowcase PREF_METALINK_LOCATION before split. 2011-07-25 23:58:38 +09:00
Tatsuhiro Tsujikawa 5a4a627d72 Remove Metalink content-type after first server response.
We don't accept Metalink content-type after first server response.
2011-07-25 00:03:13 +09:00
Tatsuhiro Tsujikawa 9fc4384c13 Updated Russian translation of aria2 man page.
Thanks to ITriskTI for translation.
2011-07-24 23:36:49 +09:00
Tatsuhiro Tsujikawa 6f2b0a269d Bump up version number to 1.12.1 2011-07-23 19:25:42 +09:00
Tatsuhiro Tsujikawa a6b7ef5f07 Eliminated static variable from LpdReceiveMessageCommand.
BtRegistry now holds LpdMessageReceiver.
2011-07-22 00:41:45 +09:00
Tatsuhiro Tsujikawa 97f76b7cf4 Fixed the bug due to dangling pointers in RequestGroup.
RequestGroup holds a poitner to btRuntime_ and peerStorage_. After
removing them from BtRegistry, we failed to set 0 to them.  When
program access them, it goes undefined world, such as random crash.
We found this bug when pasuing download and valgrind warned memory
corruption.
2011-07-21 23:59:44 +09:00
Tatsuhiro Tsujikawa c58f736bb9 BtRegistry now holds BitTorrent TCP server port.
Because BitTorrent TCP server port is global configuration, it is not
preferable that per download resource BtRuntime holds it.  We also
refactored and eliminated ugly static variable in PeerListenCommand.
If TCP port is necessary, we inject it to them directly.
2011-07-21 23:42:41 +09:00
Tatsuhiro Tsujikawa f0cd83f809 Added log message to clarify error for BitTorrent server socket. 2011-07-21 21:59:26 +09:00
Tatsuhiro Tsujikawa e15f4edf8b Loosen the condition where maxOutstandingRequest_ is increased. 2011-07-18 23:31:25 +09:00
Tatsuhiro Tsujikawa a454a97c4e Set UB_MAX_OUTSTANDING_REQUEST 256 2011-07-16 16:19:38 +09:00
Tatsuhiro Tsujikawa f1bfd0ed76 Removed --enable-direct-io option.
Added #deprecated and #help help tag.
2011-07-16 16:18:22 +09:00
Tatsuhiro Tsujikawa af0daa3caa Set NO_DEFAULT_VALUE as the default value of --enable-direct-io. 2011-07-16 16:15:16 +09:00
Tatsuhiro Tsujikawa 0eda667605 Added #deprecated help tag. 2011-07-16 16:14:57 +09:00
Tatsuhiro Tsujikawa 4933428261 Removed ENABLE_DIRECT_IO macro. 2011-07-16 16:06:15 +09:00
Tatsuhiro Tsujikawa dbf4f553ca Deprecated --enable-direct-io option.
Modified DeprecatedOptionHandler so that it can have replacing
OptionHandler.
2011-07-16 16:03:28 +09:00
Tatsuhiro Tsujikawa b96df117d6 Removed deprecated options.
Removed --enable-xml-rpc, --xml-rpc-listen-all, --xml-rpc-listen-port,
--xml-rpc-max-request-size, --xml-rpc-user, --xml-rpc-passwd.
2011-07-16 15:52:35 +09:00
Tatsuhiro Tsujikawa 5bbfa742fc Removed use of O_DIRECT because it performs bad. 2011-07-16 13:57:31 +09:00
Tatsuhiro Tsujikawa 5c4a52ad74 Managed user cuid in Piece.
Previous implementation does not store information which Command cuid
uses which Piece.  Mark Piece acquired by SegmentMan by setting
Piece::setUsedBySegment(true).
2011-07-16 00:58:41 +09:00
Tatsuhiro Tsujikawa ba710a7cb4 Define SHUT_WR as SD_SEND for MinGW32 2011-07-16 00:58:13 +09:00
Tatsuhiro Tsujikawa ad4065ca12 Increased max # of in-flight request in BitTorrent. 2011-07-16 00:24:29 +09:00
Tatsuhiro Tsujikawa 44c379eaa8 Do nothing if block has already acquired.
This happens in end-game mode.
2011-07-16 00:23:45 +09:00
Tatsuhiro Tsujikawa ee1223210d Added --log option to aria2rpc 2011-07-13 22:53:21 +09:00
Tatsuhiro Tsujikawa 5703835784 Use GNUTLS_SHUT_WR instead of GNUTLS_SHUT_RDWR
We don't read the response from peer about this.
2011-07-06 22:52:15 +09:00
Tatsuhiro Tsujikawa 6f602e2809 Call shutdown() with SHUT_WR before close to avoid TCP RST. 2011-07-06 22:51:20 +09:00
Tatsuhiro Tsujikawa 61706acf82 Updated bash_completion 2011-06-30 21:55:47 +09:00
Tatsuhiro Tsujikawa 90c8e0f75a Added parameter handling of --stream-piece-selector 2011-06-30 21:55:17 +09:00
Tatsuhiro Tsujikawa c1ba8f5edc Updated Russian translation. Thanks to all translators. 2011-06-30 21:42:14 +09:00
Tatsuhiro Tsujikawa 52e986ac78 Updated doc 2011-06-30 21:31:46 +09:00
Tatsuhiro Tsujikawa d2e76eca47 Don't search faster server using ServerStatMan if req_ is null or
total length is unknown.
2011-06-29 21:30:32 +09:00
Tatsuhiro Tsujikawa 644bb4e817 Updated Russian translation. Thanks to all translators. 2011-06-28 23:24:24 +09:00
Tatsuhiro Tsujikawa 8785710e6b Updated NEWS for 1.12.0 release. 2011-06-28 23:16:00 +09:00
Tatsuhiro Tsujikawa 909b09e260 Added aria2c.1.asciidoc translated in Russian. Thanks to ITriskTI for
translation.

Since aria2c.1 will be generated from aria2c.1.asciidoc, aria2c.1 was
removed from repository.
2011-06-28 22:47:13 +09:00
Tatsuhiro Tsujikawa 45430983d8 Move URI to spendUris_ when it is selected in
FileEntry::findFasterRequest().
2011-06-28 22:38:31 +09:00
Tatsuhiro Tsujikawa bd4d3a27b3 Assign global::wallclock instead of calling Timer::reset(). 2011-06-28 22:30:40 +09:00
Tatsuhiro Tsujikawa 5d498cb1ab Take into account PREF_MAX_CONNECTION_PER_SERVER in
findFasterRequest(...,serverStatMan).
2011-06-28 21:27:31 +09:00
Tatsuhiro Tsujikawa 2906484345 Use ServerStat to find faster server. 2011-06-28 00:21:29 +09:00
Tatsuhiro Tsujikawa ba6ab14235 Updated po templates. 2011-06-25 03:00:41 +09:00
Tatsuhiro Tsujikawa 97b6eb7eac Updated Russian man page. Thanks to ITriskTI for translation. 2011-06-23 00:27:18 +09:00
Tatsuhiro Tsujikawa 068fb5798d Bump up version number to 1.12.0 2011-06-21 22:42:31 +09:00