Tatsuhiro Tsujikawa
a503481701
Bump up version number to 1.16.2
2013-01-29 21:39:41 +09:00
Tatsuhiro Tsujikawa
de9697fc47
Fix compiler warning
2013-01-29 21:38:58 +09:00
Tatsuhiro Tsujikawa
e583717144
Increase MAX_PEER_LIST_SIZE to 512
...
We definitely need some tests to determine this value.
2013-01-28 21:36:52 +09:00
ITriskTI
f8cb9b67de
Update and fixed some bugs
2013-01-27 21:12:55 +03:00
Tatsuhiro Tsujikawa
382cb9a191
Document about k and m can be used as well as K and M.
2013-01-27 21:13:24 +09:00
Tatsuhiro Tsujikawa
988878930e
Check SSL_OP_NO_COMPRESSION is available before using it
2013-01-27 17:32:06 +09:00
Tatsuhiro Tsujikawa
a722500d62
Make DefaultPeerStorage::droppedPeers_ distinct
2013-01-26 19:00:03 +09:00
Tatsuhiro Tsujikawa
3a19b65dd7
Rename /BadCondition/ in Peer to /Drop/
2013-01-26 18:50:48 +09:00
Tatsuhiro Tsujikawa
91b26ab2a8
DefaultPeerStorage::addBadPeer: Updating eoi is not required after erasure
2013-01-26 18:41:43 +09:00
Tatsuhiro Tsujikawa
1e4f301ec1
Remove PeerStorage::getActivePeers() and add getUsedPeers() instead
...
PeerStorage::getUsedPeers() returns non-active peers, so caller must
call Peer::isActive() to get active peers.
2013-01-26 18:36:09 +09:00
Tatsuhiro Tsujikawa
ba69f5c0c3
Refactor peer list management in DefaultPeerStorage
...
Peer list is now divided into 2: unusedPeers_ and usedPeers_.
Duplicate check is done using std::set by comparing pair of IP address
and port. For this, only IP address and port given to the Peer
constructor are used. In other words, TCP port received from extended
message is not used for this purpose.
2013-01-26 17:50:06 +09:00
Tatsuhiro Tsujikawa
8524ac3806
Code cleanup
2013-01-25 00:10:11 +09:00
Tatsuhiro Tsujikawa
de394bbf61
DefaultPeerStorage::addPeer: Remove unnecessary '='
2013-01-25 00:08:49 +09:00
Tatsuhiro Tsujikawa
550ac8c074
Fix bug returnPeer is not called if sequence_ == INITIATOR_SEND_KEY
...
In InitiatorMSEHandshakeCommand, when aborting connection, we must
return peer to the PeerStorage. But it is not done if sequence_ is
INITIATOR_SEND_KEY. This causes stale Peer objects whose usedBy()
returns true eventually occupies peer list and aria2 cannot make any
connections.
2013-01-25 00:01:43 +09:00
Tatsuhiro Tsujikawa
32a3c441af
Fix bug: wrong parenthesis position in the condition
2013-01-24 00:04:58 +09:00
Tatsuhiro Tsujikawa
3b7566faf1
Rewritten util::uitos()
2013-01-16 23:30:02 +09:00
Tatsuhiro Tsujikawa
1c72b80aa5
Revert 53dde0a9
...
Reverted to the original strategy, but some values are tweaked.
Without TCP_NODELAY, 53dde0a9
does not work well.
2013-01-15 23:50:12 +09:00
Tatsuhiro Tsujikawa
bf4ea63a66
Disable TCP_NODELAY for BitTorrent
...
To make Request messages more often packed into 1 packet.
2013-01-15 23:17:21 +09:00
Tatsuhiro Tsujikawa
e6b0274685
Remove reqNumToCreate constraint when creating request
...
It really degrades download speed.
2013-01-15 23:07:08 +09:00
Tatsuhiro Tsujikawa
df0be5e7f0
Cosmetic change
2013-01-15 21:57:35 +09:00
Tatsuhiro Tsujikawa
88580da587
Remove Append and StringAppend
2013-01-15 21:46:03 +09:00
Tatsuhiro Tsujikawa
6a976a4118
Accept k and m as well as K and M in util::getRealSize()
2013-01-15 21:36:25 +09:00
Tatsuhiro Tsujikawa
851eb137c1
Reverted UB_MAX_OUTSTANDING_REQUEST to 256
2013-01-15 00:33:40 +09:00
Tatsuhiro Tsujikawa
53dde0a9ae
Download rate based strategy to increase outstanding request
...
This strategy performs better than old one in high latency
environment.
2013-01-15 00:02:40 +09:00
Tatsuhiro Tsujikawa
2e216a9403
Fix unit test error
2013-01-14 21:34:33 +09:00
Tatsuhiro Tsujikawa
d05ef28104
Avoid tiny packet for Have and Request message
2013-01-14 21:02:58 +09:00
Tatsuhiro Tsujikawa
d8f5887bbe
Increase amount to 24K to pack Piece header and payload; fix missing goto
2013-01-14 21:01:08 +09:00
Tatsuhiro Tsujikawa
63b6075c91
Pack Piece message header and body into one chunk
2013-01-14 18:09:40 +09:00
Tatsuhiro Tsujikawa
36fcccbbdf
Reverted accidental change to CHOKE_ROUND_INTERVAL
2013-01-11 23:30:26 +09:00
Tatsuhiro Tsujikawa
1ad815061b
Rewritten SpeedCalc
2013-01-11 23:29:58 +09:00
Tatsuhiro Tsujikawa
c893d82867
Removed BtMessage::isSendingProgress()
...
DefaultBtMessageDispatcher::isSendingInProgress() now checks the
number of buffer entry in PeerConnection.
2013-01-11 20:26:31 +09:00
Tatsuhiro Tsujikawa
c04df672d1
Buffer up at most A2_IOV_MAX buffer entries for BtMessages
2013-01-11 18:46:36 +09:00
Tatsuhiro Tsujikawa
e0ea88ebcf
mingw32: Make NTFS sparse file on --file-allocation=trunc
2013-01-11 18:35:54 +09:00
Tatsuhiro Tsujikawa
357e4b1a77
Made SocketCore::readData() and readDataFrom() take void*
2013-01-11 17:03:59 +09:00
Tatsuhiro Tsujikawa
8ba0d58ee1
Vectorized write for SocketBuffer to avoid small packet
2013-01-11 16:50:04 +09:00
Tatsuhiro Tsujikawa
74e570de37
Documented --save-session-interval option in man page
2013-01-10 00:18:14 +09:00
Tatsuhiro Tsujikawa
8e63bad2da
Added --save-session-interval option
...
--save-session-interval option saves error/unfinished downloads to a
file specified by --save-session option every SEC seconds. If 0 is
given, file will be saved only when aria2 exits.
2013-01-10 00:15:30 +09:00
Tatsuhiro Tsujikawa
794f7b7014
Documented --referer="*" in man page
2013-01-08 21:46:50 +09:00
Tatsuhiro Tsujikawa
87af7c32c6
Use request URI as referer if --referer="*" is given
2013-01-08 21:42:42 +09:00
Tatsuhiro Tsujikawa
58c047a4a8
Documented --console-log-level option in man page
2013-01-08 21:27:26 +09:00
Tatsuhiro Tsujikawa
08bed3f77f
Log warn if unknown option is found in config file or -i file
2013-01-07 22:42:28 +09:00
Tatsuhiro Tsujikawa
d6000024c0
Added --console-log-level option
...
--console-log-level option sets log level to output to console.
2013-01-05 18:48:09 +09:00
Tatsuhiro Tsujikawa
f019eae5df
mingw32: Use LANG_ENGLISH for error message
2012-12-27 00:53:22 +09:00
Tatsuhiro Tsujikawa
247084f9c3
Fixed bug that USR_BASENAME is not defined
...
In some cases, if the dirname is only "/", the basename will not be
defined (e.g., "/f"). This change fixes this bug.
2012-12-27 00:03:37 +09:00
Tatsuhiro Tsujikawa
e1f661d5b7
Updated NEWS for 1.16.1 release
2012-12-26 23:28:58 +09:00
Tatsuhiro Tsujikawa
e9de4db0d5
Updated bash_completion
2012-12-26 23:28:42 +09:00
Tatsuhiro Tsujikawa
bd671403bc
Fix compiler warning
2012-12-26 23:10:32 +09:00
Tatsuhiro Tsujikawa
c09a5a95f4
mingw32: Re-open files with read-only mode enabled on seeding
...
On Mingw32 build, if aria2 opens file with GENERIC_WRITE access right,
some programs cannot open the file aria2 is seeding. To avoid this
situation, re-open files with read-only enabled when seeding is about
to begin.
2012-12-24 23:03:19 +09:00
Tatsuhiro Tsujikawa
43cee0c264
Updated Compiling Android binary section about toolchain path
2012-12-24 21:37:11 +09:00
Tatsuhiro Tsujikawa
d13aa3a0b3
Added missing IndexedList.h to SRCS
2012-12-24 21:23:52 +09:00