| Commit message (Collapse) | Author | Age | Files | Lines |
| |\ |
|
| | | |
|
| |\| |
|
| | | |
|
| | | |
|
| |/ |
|
| |
|
|
|
|
|
|
|
|
| |
This option excludes seed only downloads when counting concurrent
active downloads (-j option). This means that if -j3 is given and
this option is turned on and 3 downloads are active and one of those
enters seed mode, then it is excluded from active download count (thus
it becomes 2), and the next download waiting in queue gets started.
But be aware that seeding item is still recognized as active download
in RPC method.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
This change changes the behavior of --bt-max-open-files. Previously,
it specifies the maximum number of opened files for each multi-file
download. Since it is more useful to limit the number globally, the
option now specifies the global limit. This change suggests that
aria2.changeOption() method now ignores --bt-max-open-files and
aria2.changeGlobalOption now reads it and dynamically change the
limit.
|
| | |
|
| | |
|
| |
|
|
| |
Courtesy of llvm cpp11-migrate 3.3
|
| | |
|
| |
|
|
|
| |
MultiFileAllocationIterator is also rewritten so that it does not
requre copying DiskWriterEntry objects.
|
| |
|
|
|
| |
The constructor of std::shared_ptr which takes nullptr is not explicit
so we can return nullptr directly.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
Returning raw pointer has a risk that it may be stolen by
std::shared_ptr in accident.
|
| |
|
|
| |
DownloadContext::getAttribute() returns a raw pointer.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
Historically, aria2 did not send HAVE message to the peer which the
piece is coming from, thinking it is obvious that the peer knows we
have the piece. But it is not obvious if one piece is download from
more than 1 peers (e.g., end game mode). So it is better to send HAVE
to all peers connected.
|
| |
|
|
|
|
|
| |
WebSocketSessionMan now implements DownloadEventListener and is added
to Notifier. It becomes member variable of DownloadEngine. The event
constant for download event is defined in aria2.h so that we can add
event callback API later.
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
This option enables disk cache. If SIZE is 0, the disk cache is
disabled. This feature caches the downloaded data in memory, which
grows to at most SIZE bytes. The cache storage is created for aria2
instance and shared by all downloads. The one advantage of the disk
cache is reduce the disk seek time because the data is written in
larger unit and it is reordered by the offset of the file. If the
underlying file is heavily fragmented it is not the case.
|
| | |
|
| |
|
|
| |
Now key for ContextAttribute object store is int instead of string.
|
| |
|
|
|
|
| |
--file-allocation option can now take new value 'trunc'. 'trunc' uses
ftruncate() system call or platform-specific counterpart to truncate a
file to a specified length.
|
| | |
|
| |
|
|
|
| |
When calculating completed length, don't sum the completed length of
piece which does not intersect filtered ranges.
|
| |
|
|
|
| |
Some classes such as DiskAdaptor, DiskWriter, FileAllocationIterator
and ChecksumValidator are left unchanged.
|
| |
|
|
| |
insertions and deletions are frequent.
|
| |
|
|
| |
Wslay library must be placed under deps/wslay.
|
| |
|
|
|
|
| |
Test for the zero-length array with A2_ARRAY_LEN was commented out
since it is only used in unit test code and clang and old gcc 3.4.3
emit error.
|
| | |
|
| |
|
|
|
| |
Since off_t is int64_t with LFS, we cannot take advantage of extra
capacity of uint64_t.
|
| |
|
|
|
|
| |
In DefaultPieceStorage::onDownloadIncomplete(), we call
StreamPieceSelector::onBitfieldInit().
Added GeomStreamPieceSelectorTest.
|
| |
|
|
| |
parameter.
|
| | |
|
| |
|
|
|
| |
This is necessary to avoid global variable initialization order
problem.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Previous implementation does not store information which Command cuid
uses which Piece. Mark Piece acquired by SegmentMan by setting
Piece::setUsedBySegment(true).
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This option specifies piece selection algorithm used in HTTP/FTP
download. Piece means fixed length segment which is downloaded in
parallel in segmented download. If 'default' is given, aria2 selects
piece so that it reduces the number of establishing connection. This
is reasonable default behaviour because establishing connection is an
expensive operation. If 'inorder' is given, aria2 selects piece which
has minimum index. Index=0 means first of the file. This will be
useful to view movie while downloading it. --enable-http-pipelining
option may be useful to reduce reconnection overhead. Please note
that aria2 honors --min-split-size option, so it will be necessary to
specify a reasonable value to --min-split-size option.
|
| |
|
|
|
| |
This class abstracts the piece selection algorithm for HTTP/FTP
download.
|
| |
|
|
|
|
| |
Replaced StringFormat with fmt
|