Commit Graph

4041 Commits (0b1e05b13bfd7cfbf75b299c1f32cdd6e6aed953)

Author SHA1 Message Date
Tatsuhiro Tsujikawa 8f659f49ec Rename gidToString as gidToHex, add hexToGid and isNull 2013-04-30 22:51:05 +09:00
Tatsuhiro Tsujikawa 1df4adefb5 Add accessors for DownloadHandle
Added downloadGetBitfield, downloadGetNumPieces,
downloadGetConnections, downloadGetErrorCode,
downloadGetFollowedBy, downloadGetBelongsTo and
downloadGetDir functions.
2013-04-30 22:42:23 +09:00
Tatsuhiro Tsujikawa d1252dcc5f Move aria2api.{cc,h} to libaria2_la_SOURCES 2013-04-30 21:47:05 +09:00
Tatsuhiro Tsujikawa db2e22132d Merge branch 'libuv-eventpoll' of https://github.com/nmaier/aria2 into nmaier-libuv-eventpoll 2013-04-30 14:53:42 +09:00
Tatsuhiro Tsujikawa 549dd5b2a7 uitos: Fix off-by-one error bug 2013-04-29 23:53:23 +09:00
Nils Maier a1a3e21f73 LibUV: Revert unrelated change 2013-04-28 21:54:35 +02:00
Nils Maier e700ebd3e9 LibUV: Reorder event poll preference
*nix will keep epoll/kqueue/port as the default (when available), while
Windows, lacking all of these, will default to libuv (when available)
2013-04-28 21:44:06 +02:00
Nils Maier d2c1fbd792 Add configure support for linking tcmalloc_minimal and/or jemalloc
Both tcmalloc_minimal and jemalloc outperform the native malloc
implemention on Windows (MSVCRT) in terms of committed memory
consumption (~-30%) and performance (e.g. far less page faults, ~-60%),
depending, of course, on the actual workload.
The longer the download queue, the bigger the impact ;)

On *nix the picture is a little different... tcmalloc usually still
outperforms the native malloc implementation, but not that significantly
than on Windows. jemalloc however is only marginally better than recent
native Linux implementations, while it is already used by some BSD as the
native allocator.

tcmalloc is part of gperftools and very mature and tested by now. It
doesn't work on OSX in the default configuration, however.
http://code.google.com/p/gperftools/

jemalloc is the default allocator at least on FreeBSD and NetBSD and
used in Firefox.
http://www.canonware.com/jemalloc/index.html
2013-04-28 21:35:22 +02:00
Nils Maier 6b7a51d5e0 Close GZipFiles in the d'tor 2013-04-28 21:32:51 +02:00
Tatsuhiro Tsujikawa 28849e3ddf Add gidToString and getActiveDownload API functions 2013-04-27 01:26:59 +09:00
Tatsuhiro Tsujikawa 9734fa5447 Call onEndOfRun() on oneshot == true as well 2013-04-27 01:23:54 +09:00
Tatsuhiro Tsujikawa 0ef5f4eea1 Add getDownloadHandle API 2013-04-27 00:57:18 +09:00
Tatsuhiro Tsujikawa 6fcf274f27 Add initialization function and addUri API function for libaria2 2013-04-26 23:59:48 +09:00
Tatsuhiro Tsujikawa 90abec8a36 Move initialization code in aria2::main to struct Context 2013-04-25 21:46:31 +09:00
Tatsuhiro Tsujikawa bbb978948d Add preliminary libtool files for libaria2 2013-04-25 11:38:26 +09:00
Tatsuhiro Tsujikawa e548a1a225 Add missing check for sigaction 2013-04-25 11:38:02 +09:00
Tatsuhiro Tsujikawa b05454657f Fix cached data is not flushed when downloaded data is less than 16KiB 2013-04-23 23:00:11 +09:00
Tatsuhiro Tsujikawa 9665a3491d Avoid docutils bug
Old docutils has bug which does not escape . at the start of the line,
which accidentally makes it manpage macro.
2013-04-23 21:12:28 +09:00
Tatsuhiro Tsujikawa 8604714c4e Update bash_completion 2013-04-20 23:04:11 +09:00
Tatsuhiro Tsujikawa 9abbd5c917 Use INFO level log when get_associate failed in PortEventPoll::poll() 2013-04-20 21:03:38 +09:00
Tatsuhiro Tsujikawa 51f3bc59e1 Update NEWS for 1.17.0 release 2013-04-20 19:03:59 +09:00
Nils Maier 0cccc2d27a Libuv: Proper configure detection 2013-04-17 15:53:24 +02:00
Nils Maier 539fda0b4f LibUV: Code cleanup 2013-04-17 15:53:17 +02:00
Nils Maier 1cd5dcc9b6 LibUV: Correct event removal 2013-04-17 15:53:06 +02:00
Tatsuhiro Tsujikawa 71713709e5 Bump up version number to 1.17.0 2013-04-16 21:30:28 +09:00
Tatsuhiro Tsujikawa 9041be8e32 Add tailmatch testcase for cookie 2013-04-15 21:30:15 +09:00
Tatsuhiro Tsujikawa f326955108 Fix sphinx warnings 2013-04-15 21:18:22 +09:00
Tatsuhiro Tsujikawa adab7ace6e Merge branch 'master' of https://github.com/gsavix/aria2 into gsavix-master 2013-04-15 21:15:12 +09:00
gilberto dos santos alves 6ced9deef8 Update aria2c.rst
appletls warnings. first create private certificate with sha-1
2013-04-14 13:52:33 -03:00
gilberto dos santos alves ca57f82dae Update aria2c.rst
type error metalink option rst title chars (mixed ~----~~
2013-04-14 13:32:04 -03:00
ITriskTI a3aec02fe1 Update aria2c.rst 2013-04-14 18:33:03 +03:00
Tatsuhiro Tsujikawa 8a431bfc89 Don't wait for AAAA query response if A query response has been received
If we got IPv4 lookup response, we don't wait for IPv6 lookup
response. This is because DNS server may drop AAAA query and we have
to wait for the long time before timeout. We don't do the inverse,
because, based on todays deployment of DNS server, almost all of them
can respond A query just fine.
2013-04-14 21:12:46 +09:00
Tatsuhiro Tsujikawa 5e245c3397 Fix compile error without SSL/TLS lib 2013-04-14 18:43:16 +09:00
Tatsuhiro Tsujikawa 2e39fd6273 Check configured addresses again if previous check found none of them
Currently, aria2 checks configured addresses at the startup. But there
are chances that interfaces are not setup at that moment. For example,
if aria2 is used as daemon, it may start before network interfaces
up. To workaround this, we check addresses again if both addresses are
not configured at the startup.
2013-04-13 21:16:53 +09:00
Tatsuhiro Tsujikawa 994eb551f1 Append --static to pkg-config arguments when ARIA2_STATIC=yes 2013-04-13 00:47:38 +09:00
Tatsuhiro Tsujikawa 4070113ef0 Save options directly specified for download in --save-session
This change makes --save-session save only options specified for
download, more specifically, options in command-line, -i file and via
RPC. The other options from conf file and default values are not
saved.  This will drastically decrease the size of session file.
2013-04-11 23:13:21 +09:00
Tatsuhiro Tsujikawa 07d38e31ad Save URI returned only from FileEntry::getRemainingUris()
The currently used URIs are inserted back into remaining URI list in
FileEntry::putBackRequest(), which overlaps to some of the URIs in
spentUris_. If we save spent URIs, each time save is performed, the
number of URIs are increased due to this overlap. This change fixes
this bug.
2013-04-11 22:45:37 +09:00
Nils Maier b874c7df11 AppleMD: Add destructors to make compilers happy 2013-04-10 08:51:57 +02:00
Nils Maier 9acd3df3cb LibUV: Implement LibuvEventPoll
LibUV event will use the best available polling method on a system, kind
of like aria2 does already with the different *EventPoll
implementations.
However, libuv may support different/newer polling mechanisms; for
example on Windows it will use IO Completion Ports which are superior to
select() ;)
2013-04-10 08:47:20 +02:00
Tatsuhiro Tsujikawa b35fbd3172 Print linked 3rd party libraries with version in `aria2c -v` output 2013-04-10 00:23:39 +09:00
Tatsuhiro Tsujikawa d0ff31faf8 Format MessageDigest.cc 2013-04-09 23:46:25 +09:00
Tatsuhiro Tsujikawa f333231c7a Fix broken MessageDigst::getSupportedHashTypeString() 2013-04-09 23:45:28 +09:00
Tatsuhiro Tsujikawa 15e1a79914 Update TLSSession::checkDirection() doc
Make it clear that TLS_WANT_READ must be returned if underlying
SSL/TLS lib does not indicate I/O direction. This is because
SocketCore sets wantRead_ = true when TLS_WANT_READ is returned and
otherwise sets wantWrite_ = true. We only want to set wantWrite_ =
true iff we have some pending data to send.
2013-04-09 01:12:51 +09:00
Tatsuhiro Tsujikawa 83b801a0a5 Merge branch 'appletls-wantread' of https://github.com/nmaier/aria2 into nmaier-appletls-cred-kc 2013-04-09 01:09:16 +09:00
Nils Maier 16876a5334 AppleTLS: Fixup checkDirection() to return WANT_READ by default 2013-04-08 17:09:32 +02:00
Nils Maier f9225db135 AppleTLS: Document new --rpc-certificate behavior 2013-04-08 07:15:38 +02:00
Nils Maier 82a861f8d8 AppleTLS: Support credentials via KeyChain fingerprints 2013-04-08 06:45:53 +02:00
Tatsuhiro Tsujikawa 89cf6c0468 Append comment to endif 2013-04-06 16:34:49 +09:00
Tatsuhiro Tsujikawa 457356ad13 Fix make distcheck 2013-04-06 16:33:15 +09:00
Tatsuhiro Tsujikawa ddad275dbd Make log level INFO in addTrustedCACertFile()
With WARN level, they will be always printed on Mac OS and old GNUTLS
build which does not have its API.
2013-04-06 16:15:32 +09:00