| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| |\
| |
| |
| | |
ITriskTI-patch-1
|
| | | |
|
| |/ |
|
| | |
|
| |
|
|
|
|
|
| |
This commit fixes the bug that aria2.tellStopped RPC method returns
total length and completedLength as 0 when file size is unknown in
advance and turns out > 2GB in the end. This commit and addresses the
performance degradation in this case.
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
Revert "Fix typo"
This reverts commit 4dfd8b884775737f85783976958f4e976b65a5fb.
Revert "MinGW: Fix compiler warning with -Wstrict-aliasing"
This reverts commit 897f0e87f4bd69bf6703a12feb326aeba53b0dcd.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
The error message is:
warning: dereferencing type-punned pointer will break strict-aliasing
rules [-Wstrict-aliasing]
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
This commit fixes following compiler warning with mingw compiler:
In file included from common.h:63:0,
from util_security.h:42,
from util_security.cc:36:
/usr/share/mingw-w64/include/winsock2.h:15:2: warning: #warning
Please include winsock2.h before windows.h [-Wcpp]
#warning Please include winsock2.h before windows.h
|
| | |
|
| | |
|
| |
|
|
| |
This will slow down checksum checking but does not thrash cache.
|
| |
|
|
| |
Fixes #241
|
| |
|
|
|
|
|
|
|
|
| |
The algorithms the `CryptProv` on Windows supports does not currently
include SHA-224, so there is a "dark spot" in this implementation. Also
on Win XP < SP3, most of the SHA-2 family is not actually supported.
All other implementation provide support for MD5, SHA-1 and all of the
SHA-2 family, hence drop the incomplete WinMessageDigest implementation
in favor of any other supported implementation (at least the internal
implementation is always available at compile-time).
|
| |
|
|
|
|
|
| |
- Replace sha1/md5 implementation by ones from https://github.com/nmaier/crypto
- Add endianess functionality fro https://github.com/nmaier/crypto
Closes GH-239
|
| |\
| |
| | |
typo fix.
|
| |/
|
| |
added missing space.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
This option pauses downloads created as a result of metadata
download. There are 3 types of metadata downloads in aria2: (1)
downloading .torrent file. (2) downloading torrent metadata using
magnet link. (3) downloading metalink file. These metadata downloads
will generate downloads using their metadata. This option pauses these
subsequent downloads.
|
| |
|
|
|
|
|
|
|
|
| |
Add and use usedCompilerAndPlatform(). This adds compiler information to
INFO logs and the --version output, and may be helpful when trying to
diagnose/reproduce user-reported problems.
Also make INFO logs include usedLibs() output.
Closes #235
|
| |
|
|
|
|
|
|
|
|
|
| |
DefaultPieceStorage may be referenced by one of DHT task (e.g.,
DHTPeerLookupTask), after RequestGroup was deleted, and even after
RequestGroupMan was deleted. DefaultPieceStorage has a reference to
MultiDiskAdaptor which calls RequestGroupMan object on destruction.
So when DHT task is destroyed, DefaultPieceStorage is destroyed, which
in turn destroys MultiDiskAdaptor. DHT task is destroyed after
RequestGroupMan was destroyed, MultiDiskAdaptor will use now freed
RequestGroupMan object, this is use-after-free.
|
| |
|
|
| |
This bug was only seen when MultiDiskAdaptor was used.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
Reworked previous commit adeead6f0396e2f8551d1182972e277728fd6c8b, and
now support changing PREF_DIR for Metalink downloads.
|
| |
|
|
|
| |
The rule is simple: don't try to change the coding style of the
existing codebase.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
When the directory is changed via aria2.changeOption RPC method, we
directly change first FileEntry's path using FileEntry::setPath(). If
there is no PREF_OUT option is given, basically file name is unknown,
so we just set empty string and let the next run determine the correct
file name and new directory is applied there. But previous code does
not reset length property of FileEntry, so the unexpected code path is
taken when unpaused and its path expects path is not empty string.
This commit fixes this issue by setting length to 0 using
FileEntry::setLength().
|
| |
|
|
| |
Closes #236
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This is a slight optimization not to cause useless disk access. This
only applies to saving session automatically (see
--save-session-interval). aria2.saveSession and serialization at the
end of the session are always performed as before.
When serialization, we first check that whether there is any change
since the last serialization. To do this, we first calculate hash
value of serialized content without writing into file. Then compare
this value to the value of last serialization. If they do not match,
perform serialization.
|
| |
|
|
| |
This reverts commit 1944d8db58555c08b5f069a2e987fcfdd5aad997.
|
| |
|
|
|
|
|
| |
This is a slight optimization not to cause useless disk access. This
only applies to saving session automatically (see
--save-session-interval). aria2.saveSession and serialization at the
end of the session are always performed as before.
|
| | |
|
| | |
|
| |
|
|
| |
Fixes regression from #221
|
| |
|
|
|
| |
The _CRT_fmode stuff was never working correctly anyway, and is entirely
unsupported in mingw-w64 these days, it seems.
|