Commit Graph

1174 Commits (a06d521aa7ef9329f53d06b2b47a94aba33e9308)

Author SHA1 Message Date
Tatsuhiro Tsujikawa 795a0474df clang-format-5.0 2017-11-23 14:11:43 +09:00
Tatsuhiro Tsujikawa 64fe98a1ea clang-format 2017-10-07 19:42:43 +09:00
Kurt Kartaltepe a3bacc0ff1 Add --peer-agent option
Add --peer-agent for setting the version/user agent used in the extended
handshake protocol for bittorrent.
2017-07-11 10:18:51 -05:00
Tatsuhiro Tsujikawa 9677586336 clang-format-4.0 2017-05-19 21:32:25 +09:00
klemens aa5567d774 spelling fixes 2017-03-20 22:46:38 +01:00
klemens ec2ce4ffe5 spelling fixes 2017-03-20 22:44:41 +01:00
JimmyZ da730478af new option content-disposition-default-utf8 2016-12-31 14:11:12 +09:00
Michał Górny 02985711df configure: Use pkg-config to find libs whenever possible
Use pkg-config to find cppunit, libxml2 and expat. All those libraries
provide pkg-config files, and in all of those cases the pkg-config macro
is superior to the custom macros used currently.

The advantages of pkg-config files include:

- Explicit static linking support via --static. Currently, e.g.
'xml2-config --libs' prints all libraries needed for static linking when
doing dynamic linking unnecessary, resulting in unnecessary direct deps.

- Better cross-build support. You don't have to build the additional
*-config tools for target.

- Better multilib support. Per-ABI pkgconfig directories are commonly
supported while packages usually fail to look for per-CHOST *-config
variants.

- Better override support. The current macros allow little to no
result overrides, the pkg-config macros let you pass FOO_CFLAGS
and FOO_LIBS manually.

- Cleaner version checks. The code used in libxml.m4 is really creepy.
2016-11-12 22:13:48 +01:00
Tatsuhiro Tsujikawa aa4ea8889c clang-format-3.9 2016-10-15 19:02:54 +09:00
Tatsuhiro Tsujikawa 3cdde0f425 Compile with openssl 1.1.0
We moved @CPPUNIT_LIBS@ to later position.  This is because in my
development environment, it adds linker search directory which
contains system default openssl, while I'd like to use my custom
openssl installation.  This fix is not universal, since other
libraries can do the same thing.  It is a bit hard to fix this
properly because we mix -L and -l in a same variable.
2016-08-27 00:35:28 +09:00
Tatsuhiro Tsujikawa 7a31f9bf29 Make assertion hold
If we have peer which is already used, make addAndCheckoutPeer() fail.
If peer is in unused list, first remove the old entry, and then add
new one.  This would make assertion in ~DefaultPeerStorage hold.
2016-08-20 18:49:19 +09:00
Tatsuhiro Tsujikawa 8e07568a9e clang-format 2016-07-21 01:00:47 +09:00
Tatsuhiro Tsujikawa 9a63e59104 Extend maximum BitTorrent incoming payload size to 64KiB 2016-07-20 22:42:29 +09:00
Nils Maier f5ceeebe86 Fix some compiler warnings 2016-07-19 20:55:42 +02:00
Nils Maier 665a1d1b35 Better auto-renaming
Up until now aria2 file auto renaming worked by just appending a new
unique number to the file path, behind the file name extension, if any,
changing what most other programs consider the file extension in the
process.
Now, aria2 will attempt to insert the number before the file extension,
leaving the extension intact, so that e.g. a ".jpg" still is a ".jpg"
file and opens in your configured image viewer when clicking it.
If a file has no extension (incl. so called "dot files"), the number
will be appended to the file name as usual.

Note: This is a potentially breaking change that might break third party
scripts that rely on aria2 auto file renaming producing a certain format
for renamed files. Please fix your scripts accordingly.

Closes GH-709
2016-07-19 20:55:41 +02:00
Tatsuhiro Tsujikawa babdcb2c7d Change have entry indexing method
Now use increasing sequence of integer rather than timer value.
2016-07-10 22:42:49 +09:00
Tatsuhiro Tsujikawa 41df1607f6 Fix frequent interested/not interested message transmission 2016-07-09 21:36:57 +09:00
Tatsuhiro Tsujikawa 570d46725f Fix frequent choke/unchoke message transmission 2016-07-09 21:36:57 +09:00
Tatsuhiro Tsujikawa 4df7b540a2 Fix warning "Cannot fid peer ... in usedPeers_" 2016-07-03 05:26:41 +09:00
Tatsuhiro Tsujikawa f7cbbfd209 Retain peers obtained earlier 2016-07-02 16:05:22 +09:00
Tatsuhiro Tsujikawa bc77e48217 Use 1 in 2nd parameter of fwrite for consistency 2016-06-22 23:33:48 +09:00
Tatsuhiro Tsujikawa e220c53849 BitTorrent: Allow 32KiB request
It looks like the 32KiB is the default request size of python
bittorrent client.  Previously, aria2 only allowed maximum 16KiB
request.
2016-06-10 00:14:48 +09:00
Tatsuhiro Tsujikawa ae6067d2a9 Fix failed test 2016-06-05 11:30:43 +09:00
Tatsuhiro Tsujikawa b95d7fbfec Remove PeerStorage:scheduleForcedChokeRound since it is not effective 2016-06-04 22:11:51 +09:00
Tatsuhiro Tsujikawa 482cf6aca4 Fasten seed/download on fast connection 2016-06-02 22:13:47 +09:00
Tatsuhiro Tsujikawa 3e00be26e8 Include local IP address to DHT GetPeers reply message
This is required when DHT is used in private network, where seeder is
initially not known to all nodes.  This functionality requires
--bt-external-ip is set since aria2 cannot figure out external IP
address to advertise in general.
2016-05-27 23:28:53 +09:00
Tatsuhiro Tsujikawa c57259f8e7 Use standard percent-encode for tracker request query 2016-05-23 22:16:04 +09:00
Tatsuhiro Tsujikawa dae42d0cd0 Remove unused SimpleBtMessage::getMessageLength 2016-05-15 23:44:54 +09:00
Tatsuhiro Tsujikawa a7237c69f7 Refactor BitTorrent message buffer usage 2016-05-15 23:40:52 +09:00
Tatsuhiro Tsujikawa bafbbe7c1d Allow subsecond value in ns cookie.txt file's expiry time field 2016-05-15 18:40:50 +09:00
Tatsuhiro Tsujikawa 6976ffed9e Adjust chromium cookie time 2016-05-15 17:58:01 +09:00
Tatsuhiro Tsujikawa ca634a82bd Add bittorrent key to aria2.tellStopped status 2016-04-17 21:06:41 +09:00
Sonny Piers d3f16a5711 system.listNotifications RPC method 2016-04-08 18:09:50 +02:00
Tatsuhiro Tsujikawa f316c94710 Ignore floating number in torrent file 2016-03-17 23:28:28 +09:00
Tatsuhiro Tsujikawa 21754fa103 Add following to aria2.tellStatus response key as reverse link for followedBy 2016-03-05 14:20:42 +09:00
Tatsuhiro Tsujikawa 2a4d39b7e8 Don't add C++11 switch flags to CXXFLAGS 2016-01-30 19:14:38 +09:00
Tatsuhiro Tsujikawa dda0b62fb9 Add --enable-werror option to configure to enable warning flags 2016-01-22 23:22:46 +09:00
Tatsuhiro Tsujikawa f6fc952486 Don't modify user variables (e.g., CFLAGS, LIBS, etc) 2016-01-22 22:27:39 +09:00
Tatsuhiro Tsujikawa 8b93b12488 Reduce delay in tracker request
We eliminated 1 second delay between completion of name resolution for
tracker request and time when it is actually issued.  We also elimited
1 second delay after last torrent download exists and it is told to
DHTInteractionCommand.
2016-01-19 11:24:57 +09:00
Tatsuhiro Tsujikawa dd678b7c65 UDP tracker: Use unsigned integer for transaction ID and connection ID 2016-01-18 23:47:31 +09:00
Tatsuhiro Tsujikawa bf9d99f291 Send Want-Digest as per RFC 3230 2016-01-10 16:10:57 +09:00
Tatsuhiro Tsujikawa ea4d99ea08 Refactor SocketCore::getPeerInfo, getAddrInfo to return Endpoint object 2016-01-09 18:17:04 +09:00
Tatsuhiro Tsujikawa e92027b9f0 clang-format 2016-01-05 16:23:58 +09:00
Tatsuhiro Tsujikawa 8246fd1ff5 Updating upload size and speed must be done separately 2016-01-05 16:23:58 +09:00
Tatsuhiro Tsujikawa b1132d6b10 make clang-format using clang-format-3.6 2015-12-27 18:40:08 +09:00
Tatsuhiro Tsujikawa d0ccb39880 Add system.listMethods RPC method
system.listMethods just returns the available RPC method names.  It
can be executed without secret token, because it just returns the
method names, and does not alter anything.

See GH-437
2015-12-26 20:58:42 +09:00
Tatsuhiro Tsujikawa 8512fe992e Support content-range from non-compliant server
See GH-509
2015-12-19 19:26:39 +09:00
Tatsuhiro Tsujikawa 699f04d0b8 Disable --deferred-input when --save-session is used together
With --deferred-input=true, aria2 only reads input file to fill active
download slots, while keeping input file open.  Meanwhile,
--save-session saves all download info inside memory, but this does
not take into account of unread item in input file.  This will lead to
lose input data in saved session file.  Also current BufferedFile
implementation used to read/write input/output file take a lock on
Windows.  This effectively prevents session serializer from writing
session data to the same file which is still kept open because of
--deferred-input.  See GH-493
2015-11-28 13:02:21 +09:00
Tatsuhiro Tsujikawa d0b6a88f9c Base32 decode lowercased characters as well 2015-11-25 23:08:24 +09:00
Tatsuhiro Tsujikawa 5ccd5b6953 Remove content-length and content-range if transfer-encoding is given
See GH-473
2015-11-04 00:28:44 +09:00