Tatsuhiro Tsujikawa
e2ff45f326
AnnounceList, AnnounceTier: Code cleanup using C++11 features
2014-06-06 00:04:37 +09:00
Tatsuhiro Tsujikawa
aff92b5115
SocketRecvBuffer: Cleanup with C++11 features
2014-06-05 23:40:19 +09:00
Tatsuhiro Tsujikawa
0aac49d55e
Update README.android
2014-06-05 23:34:36 +09:00
Tatsuhiro Tsujikawa
0ee8104953
Small code cleanup for SocketBuffer
2014-06-05 23:33:58 +09:00
Tatsuhiro Tsujikawa
c0e4381780
util::parseIntSegments: Return SegList<int>
2014-06-04 23:21:01 +09:00
Tatsuhiro Tsujikawa
007b890fe4
bittorrent::computeFastSet: Return std::vector
2014-06-04 22:50:39 +09:00
Tatsuhiro Tsujikawa
d1d5ea5b21
DownloadContext, FileEntry: Use move semantics to path parameter in ctor
2014-06-04 22:43:29 +09:00
Tatsuhiro Tsujikawa
9b54272190
FileEntry::getUris: Return std::vector<std::string>
2014-06-04 22:33:46 +09:00
Tatsuhiro Tsujikawa
4f3c526dcd
Support PREF_DIR change for Metalink files
...
Reworked previous commit adeead6f03
, and
now support changing PREF_DIR for Metalink downloads.
2014-06-04 21:45:12 +09:00
Tatsuhiro Tsujikawa
adeead6f03
Revert to existing "proper" coding style
...
The rule is simple: don't try to change the coding style of the
existing codebase.
2014-06-03 23:41:30 +09:00
Tatsuhiro Tsujikawa
83f4bced07
Fix assertion failure when dir option of paused HTTP/FTP download is changed
...
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().
2014-06-03 23:09:28 +09:00
Nils Maier
b1a8df4cd9
Disable PBKDF2 load test
...
Closes #236
2014-05-31 21:32:02 +02:00
Tatsuhiro Tsujikawa
631f37433a
Save session only when there is change since the last serialization
...
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.
2014-05-31 16:19:57 +09:00
Tatsuhiro Tsujikawa
998fba3264
Revert "Save session only when there is change since the last serialization"
...
This reverts commit 1944d8db58
.
2014-05-31 15:28:26 +09:00
Tatsuhiro Tsujikawa
1944d8db58
Save session only when there is change since the last serialization
...
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.
2014-05-30 23:20:13 +09:00
Tatsuhiro Tsujikawa
8ada3283f2
Fix comment for conditional
2014-05-30 22:34:46 +09:00
Nils Maier
1528a0a054
Damn typos (when RST2HTML)
2014-05-30 03:29:25 +02:00
Nils Maier
c4d91b2299
Fix build without rst2html and without existing README.html
...
Fixes regression from #221
2014-05-30 03:28:04 +02:00
Nils Maier
d2e38aab36
Use _setmode to set binary mode in mingw
...
The _CRT_fmode stuff was never working correctly anyway, and is entirely
unsupported in mingw-w64 these days, it seems.
2014-05-29 19:38:34 +02:00
Nils Maier
3c55400d23
Silence deprecation warning about daemon() on OSX
2014-05-29 19:38:34 +02:00
Nils Maier
b9fe4119c0
New round of clang-modernize
2014-05-29 19:38:34 +02:00
Nils Maier
c8ccb43428
Consistent style in util_security
2014-05-29 19:38:34 +02:00
Nils Maier
77f0f1395c
Consistent style in the platform TLS implementations
2014-05-29 19:38:33 +02:00
Nils Maier
8cada49765
Cleanup AbstractCommand take 2
...
Decided to keep the 'if(' -> 'if (' stuff, as I formatted the whole file
and so it is internally consistent within the file. Also, too much
hassle.
2014-05-29 18:39:53 +02:00
Nils Maier
e57d330111
Cleanup HttpHeaderProcessor take 2
...
Decided to keep the 'if(' -> 'if (' stuff, as I formatted the whole file
and so it is internally consistent within the file. Also, too much
hassle.
2014-05-29 18:29:37 +02:00
Nils Maier
48ec56a64d
Revert "Cleanup HttpHeaderProcessor::parse"
...
This reverts commit 047b49b7a0
.
2014-05-29 18:29:37 +02:00
Nils Maier
6240345fd5
Revert "Cleanup AbstractCommand"
...
This reverts commit 0465aa5455
.
2014-05-29 18:29:37 +02:00
Nils Maier
0465aa5455
Cleanup AbstractCommand
...
In my quest to explore the code and understand it, why not clean it up
in the progress. Most formatting provided by clang-format. ;)
Aside from formatting, also extracted some method and unnested some
control structs.
2014-05-27 21:37:15 +02:00
Nils Maier
6e546245e4
Sort and cleanup src/Makefile.am
2014-05-27 21:35:42 +02:00
Nils Maier
047b49b7a0
Cleanup HttpHeaderProcessor::parse
2014-05-27 19:46:54 +02:00
Nils Maier
d72df551ba
Document setUri() in FileEntry does not need to check the return value.
2014-05-27 19:10:14 +02:00
Nils Maier
15cb9e12b2
Remove unused variable in LibgcryptMessageDigestImpl
2014-05-27 19:10:14 +02:00
Nils Maier
fd8dc921fe
Initialize DownloadEngine::tokenAverageDuration_ to something.
2014-05-27 19:10:14 +02:00
Nils Maier
f8db60e54e
OSX: Use F_NOCACHE instead of F_GLOBAL_NOCACHE
...
The latter persists for the lifetime of the file, while the former
affects only the current descriptor.
2014-05-26 21:34:49 +02:00
Nils Maier
dd8e4b0ad0
Remove spurious CXX11_OVERRIDE to make cov-build happy.
2014-05-26 01:34:26 +02:00
Nils Maier
a82f08765e
Fix (unknown length) downloads larger than 2GiB
...
Closes #215
2014-05-25 14:49:29 +02:00
Nils Maier
64b1fefb78
Add missing include in util_security.h
...
Fixes #231
2014-05-23 18:44:10 +02:00
Nils Maier
f7cc24d6cf
Internally use HMAC in http auth
...
To at least get constant time compare.
Also fix incorrect parsing of the creds (were incorrectly stripped).
Also add unit tests.
2014-05-22 15:24:20 +02:00
Nils Maier
d02ee723bd
Improve aria2.rst and usage texts a bit.
...
(Keep in mind that I'm not a native speaker either)
- Fix some typos.
- Fix some grammar stuff.
- Clarify some things.
- Add a new paragraph or two...
2014-05-20 18:02:47 +02:00
Nils Maier
17f03e8f29
Fix some typos in README.rst
2014-05-20 12:54:29 +02:00
Nils Maier
855dfa0e2f
Authorize RPC multicalls only once.
...
Cache the auth status afterwards and just assume the token still matches
(within the same request, of course).
2014-05-20 12:53:39 +02:00
Nils Maier
88b61f2eb9
Adjust RPC token processing time
...
Make it consume a bit less time.
2014-05-20 12:53:38 +02:00
Nils Maier
bb50de1336
Improve write cache failures error reporting
2014-05-20 12:52:26 +02:00
Nils Maier
fd3348cc88
Use -pipe when GCC
2014-05-20 12:50:56 +02:00
Nils Maier
5c07f0109e
Fix F_PREALLOC based allocation on some OSX versions
2014-05-08 16:40:09 +02:00
Nils Maier
1dd7409c4e
Fix unused function warning about generateRandomDataUrandom in mingw-w64
2014-05-08 16:38:32 +02:00
Nils Maier
a0f275a9f1
Remove unused function getWin32Handle
2014-05-08 16:38:32 +02:00
Tatsuhiro Tsujikawa
f60e55cece
Use index.html as filename for conditional-get when file is missing in URI
...
Previously we disabled conditional-get if file part is missing in URI.
But we use constant string "index.html" in this case, so we can do the
same to determine the modification time. In this patch, if we have
file part in URI, we are not going to set absolute file path in
FileEntry, since it prevents content-disposition from working.
2014-05-08 21:49:04 +09:00
Tatsuhiro Tsujikawa
84f1a15e10
Check negative number from Integer::i() where it is not allowed
2014-05-01 11:34:27 +09:00
Tatsuhiro Tsujikawa
4c2ad69a75
Ignore negative metadata size in extended handshake
2014-04-30 23:46:27 +09:00