Commit Graph

4315 Commits

Author SHA1 Message Date
Nils Maier
79fcafc31f Win: Use SetConsoleCtrlHandler for SIGINT/SIGTERM 2013-08-18 06:04:20 +02:00
Nils Maier
9e25335850 Implement a simple resource lock (threading)
In this initial implementation Locks are no-ops on platforms other than
Windows.
2013-08-18 06:01:52 +02:00
Nils Maier
322bd45cfb Check for sphinx-build during configure 2013-08-18 05:27:17 +02:00
Nils Maier
2216d8cd34 Fix out-of-tree README.html build 2013-08-18 04:04:21 +02:00
Nils Maier
a982dee961 Switch CA_BUNDLE to AC_DEFINE 2013-08-16 22:32:16 +02:00
Nils Maier
303f987ee9 Add --with-disk-cache configure option
Enables packagers more fine grained control over the default value
without having to mess with config files.

See GH-115
2013-08-16 22:31:56 +02:00
Nils Maier
90c39522a2 Libuv: Compatiblity fix with master 2013-08-16 22:29:14 +02:00
Nils Maier
4be7ec380f Change defaults: Enable 16M disk cache by default. 2013-08-12 20:51:19 +02:00
Tatsuhiro Tsujikawa
732ed1fb8b Fix broken XMLRPC method call 2013-08-12 10:55:50 +09:00
Tatsuhiro Tsujikawa
8d62682202 Fix segmentation fault if RpcMethod::process throws exception 2013-08-04 00:02:52 +09:00
Tatsuhiro Tsujikawa
de55569de5 Always save control file if --force-save is given 2013-07-28 18:07:29 +09:00
Tatsuhiro Tsujikawa
41121e09f7 Use std::unique_ptr for Metalink objects 2013-07-12 23:09:23 +09:00
Tatsuhiro Tsujikawa
59e63d956e Rewrite RPC method factory function 2013-07-11 21:50:47 +09:00
Tatsuhiro Tsujikawa
7c06b903f3 Use std::unique_ptr for ValueBase object hierarchy 2013-07-11 21:09:51 +09:00
Tatsuhiro Tsujikawa
7a57ecc5f8 DefaultBtMessageDispatcher: Remove unused members peerStorage_, pieceStorage_ 2013-07-07 23:28:51 +09:00
Tatsuhiro Tsujikawa
cf8cfeefbc DHTInteractionCommand: Use std::unique_ptr for DHTConnection
Remove DHTConnection from DHTMessageReceiver because it is not used.
2013-07-07 23:28:51 +09:00
Nils Maier
fc6318d23f Fix a bad std::move in HttpConnection
C++ Standard says that the order of evaluation of arguments is
unspecified. Even if it wasn't, std::move would run first, invalidating
the httpRequest smartptr, so that httpRequest->createRequest() would be
executed on the invalid ptr.
Some compilers might be smart enough to correct this error, clang XCode
Edition surely is not (not should it).
2013-07-07 14:42:36 +02:00
Tatsuhiro Tsujikawa
3f5f1e26d9 Refactor PeerInterationCommand ctor 2013-07-06 22:03:37 +09:00
Tatsuhiro Tsujikawa
3c66c18489 TrackerWatcherCommand: Use std::unique_ptr for trackerRequest_ 2013-07-06 21:00:57 +09:00
Tatsuhiro Tsujikawa
5378ed8c43 MultiUrlRequestFactory: Use std::unique_ptr for DownloadEngine 2013-07-06 19:45:01 +09:00
Tatsuhiro Tsujikawa
00e27e4fa4 DownloadEngine: Use std::unique_ptr for eventPoll_ 2013-07-06 19:39:16 +09:00
Tatsuhiro Tsujikawa
f83b0fcfa3 Refactor MultiUrlRequestInfo ctor
StatCalc creation is moved to MultiUrlRequestInfo.  The summary output
is done only when PREF_QUIET is false and it is always to
global::cout(), so remove summaryOut_ and just use global::cout() in
that case. Also use std::unique_ptr for statCalc_ in DownloadEngine.
2013-07-06 19:26:30 +09:00
Tatsuhiro Tsujikawa
162c138362 BtRegistry: Use std::unique_ptr for BtObject 2013-07-06 19:09:39 +09:00
Tatsuhiro Tsujikawa
cc3cd8a58b DownloadEngine: Use std::unique_ptr for btRegistry_ 2013-07-06 18:42:57 +09:00
Tatsuhiro Tsujikawa
3a3ac4ef9b DownloadEngine: Use std::unique_ptr for dnsCache_ 2013-07-06 18:38:18 +09:00
Tatsuhiro Tsujikawa
9130dc6776 DownloadEngine:: Use std::unique_ptr for webSocketSessionMan_
Notifier::addDownloadEventListener now takes pointer to
DownloadEventListener. Session holds unique_ptr to
ApiCallbackDownloadEventListener object.
2013-07-06 18:33:59 +09:00
Tatsuhiro Tsujikawa
81f46fbf92 Use CXX11_OVERRIDE 2013-07-06 18:15:09 +09:00
Tatsuhiro Tsujikawa
5c4f97b8a9 MultiUrlRequestInfo: Remove virtual from dtor 2013-07-06 18:14:36 +09:00
Tatsuhiro Tsujikawa
68f2a33355 DownloadEngine: Use std::unique_ptr for RequestGroupMan 2013-07-06 15:56:08 +09:00
Tatsuhiro Tsujikawa
697c1008f7 DownloadEngine: Use std::unique_ptr for checkIntegrityMan_, fileAllocationMan_ 2013-07-06 15:56:08 +09:00
Tatsuhiro Tsujikawa
6b397c8125 Use std::unique_ptr for CheckIntegrityEntry and FileAllocationEntry 2013-07-06 15:56:08 +09:00
Tatsuhiro Tsujikawa
c9e58779e1 Use std::unique_ptr for IteratableValidator 2013-07-06 15:56:08 +09:00
Tatsuhiro Tsujikawa
d3a04d10a7 DefaultPieceStorage::initStorage: Clean up 2013-07-06 15:56:08 +09:00
Tatsuhiro Tsujikawa
ae84ff26e2 AbstractSingleDiskAdaptor: Use std::unique_ptr for diskWriter_ 2013-07-06 15:56:08 +09:00
Tatsuhiro Tsujikawa
f8d305fe63 Use std::unique_ptr for FileAllocationIterator 2013-07-06 15:56:08 +09:00
Tatsuhiro Tsujikawa
345ba415a5 MultiDiskWriter: Rewrite resetDiskWriterEntries() using simpler algorithm 2013-07-06 15:56:08 +09:00
Tatsuhiro Tsujikawa
f000fd0cab MultiDiskAdaptor: Use std::unique_ptr for DiskWriterEntry and DiskWriter
MultiFileAllocationIterator is also rewritten so that it does not
requre copying DiskWriterEntry objects.
2013-07-06 15:56:08 +09:00
Tatsuhiro Tsujikawa
e823fe8bb5 Set log level DEBUG for unittests 2013-07-06 15:56:08 +09:00
Tatsuhiro Tsujikawa
28d5c7408f Check that C++ compiler supports override keyword
If the compiler supports override, define CXX11_OVERRIDE as override,
otherwise define it as empty. Use CXX11_OVERRIDE instead of override.
2013-07-06 15:54:03 +09:00
Tatsuhiro Tsujikawa
cce5b3206a Merge branch 'fix-streamfilters' of https://github.com/nmaier/aria2 into nmaier-fix-streamfilters 2013-07-06 14:39:57 +09:00
Nils Maier
093ea1de44 Fix bogus virtual override in StreamFilters 2013-07-05 20:15:55 +02:00
Nils Maier
d4044306f3 AppleTLS: Fix MessageDigestImpl 2013-07-05 20:14:49 +02:00
Nils Maier
59ba3c99f6 AppleTLS: Fix session CFRelease stuff 2013-07-05 02:00:21 +02:00
Tatsuhiro Tsujikawa
c6a733378f Use std::unique_ptr to receive BtMessage 2013-07-04 22:35:41 +09:00
Tatsuhiro Tsujikawa
0cdeaa8177 Return nullptr directly where std::shared_ptr is expected
The constructor of std::shared_ptr which takes nullptr is not explicit
so we can return nullptr directly.
2013-07-04 21:44:09 +09:00
Tatsuhiro Tsujikawa
107de58997 Return nullptr directly where std::unique_ptr is expected
The constructor of std::unique_ptr which takes nullptr is not explicit
so we can return nullptr directly.
2013-07-04 21:33:36 +09:00
Tatsuhiro Tsujikawa
6ba1725e0f Use std::unique_ptr for ARC4Encryptor in PeerConnection and MSEHandshake 2013-07-04 21:13:14 +09:00
Tatsuhiro Tsujikawa
b4ae039702 BinExpr, UnExpr: Make copies of args so that we can use them with rvalues 2013-07-04 03:04:50 +09:00
Tatsuhiro Tsujikawa
05d75ed218 Fix array version make_unique is invoked for 1 size_t arg accidentally 2013-07-04 03:02:33 +09:00
Tatsuhiro Tsujikawa
bc6aa3073b Use std::unique_ptr for StreamPieceSelector instead of std::shared_ptr 2013-07-04 01:41:12 +09:00