NEWS 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. aria2 1.18.7
  2. ============
  3. Release Note
  4. ------------
  5. This release fixes regression which makes 100% CPU utilization in
  6. multi-file torrent download with -V option. It also fixes build error
  7. on big endian platforms.
  8. Changes
  9. -------
  10. * Fixed segfault unsupported encodings
  11. Patch from diadistis
  12. * Fix regression 100% CPU utility when -V is used and download is
  13. multi-file bittorrent downloads.
  14. This is regression of a3426821c8a7f9cf8d80a81726157d4eb844f661
  15. * Fix compile error on big endian platform
  16. aria2 1.18.6
  17. ============
  18. Release Note
  19. ------------
  20. This release fixes several bugs reported in github issues and adds a
  21. feature to make RPC authentication more resilient to certain attacks.
  22. New option --pause-metadata is added. The explanation is a bit log,
  23. so check the changelog and manual. The session is now only saved if
  24. there are changes from the last saved state.
  25. From this release, MinGW32 build uses Windows native TLS
  26. implementation and no longer use OpenSSL library.
  27. Changes
  28. -------
  29. * Disard cache when checking checksum
  30. This will slow down checksum checking but does not thrash cache.
  31. * Compat with libuv 0.11 (Unstable)
  32. Fixes #241
  33. * Drop WinMessageDigestImpl.
  34. The algorithms the `CryptProv` on Windows supports does not
  35. currently include SHA-224, so there is a "dark spot" in this
  36. implementation. Also on Win XP < SP3, most of the SHA-2 family is
  37. not actually supported. All other implementation provide support
  38. for MD5, SHA-1 and all of the SHA-2 family, hence drop the
  39. incomplete WinMessageDigest implementation in favor of any other
  40. supported implementation (at least the internal implementation is
  41. always available at compile-time).
  42. * Add --pause-metadata option
  43. This option pauses downloads created as a result of metadata
  44. download. There are 3 types of metadata downloads in aria2: (1)
  45. downloading .torrent file. (2) downloading torrent metadata using
  46. magnet link. (3) downloading metalink file. These metadata
  47. downloads will generate downloads using their metadata. This option
  48. pauses these subsequent downloads.
  49. * Improve compiler/platform/libs information in logs
  50. Add and use usedCompilerAndPlatform(). This adds compiler
  51. information to INFO logs and the --version output, and may be
  52. helpful when trying to diagnose/reproduce user-reported problems.
  53. Also make INFO logs include usedLibs() output.
  54. Closes #235
  55. * Fix use-after-free on exit with multi-file torrent download + DHT
  56. DefaultPieceStorage may be referenced by one of DHT task (e.g.,
  57. DHTPeerLookupTask), after RequestGroup was deleted, and even after
  58. RequestGroupMan was deleted. DefaultPieceStorage has a reference to
  59. MultiDiskAdaptor which calls RequestGroupMan object on destruction.
  60. So when DHT task is destroyed, DefaultPieceStorage is destroyed,
  61. which in turn destroys MultiDiskAdaptor. DHT task is destroyed
  62. after RequestGroupMan was destroyed, MultiDiskAdaptor will use now
  63. freed RequestGroupMan object, this is use-after-free.
  64. * Fix bug that zero length file is not opened when flushing cache
  65. This bug was only seen when MultiDiskAdaptor was used.
  66. * Support PREF_DIR change for Metalink files
  67. Reworked previous commit adeead6f0396e2f8551d1182972e277728fd6c8b,
  68. and now support changing PREF_DIR for Metalink downloads.
  69. * Fix assertion failure when dir option of paused HTTP/FTP download is
  70. changed
  71. When the directory is changed via aria2.changeOption RPC method, we
  72. directly change first FileEntry's path using FileEntry::setPath().
  73. If there is no PREF_OUT option is given, basically file name is
  74. unknown, so we just set empty string and let the next run determine
  75. the correct file name and new directory is applied there. But
  76. previous code does not reset length property of FileEntry, so the
  77. unexpected code path is taken when unpaused and its path expects
  78. path is not empty string. This commit fixes this issue by setting
  79. length to 0 using FileEntry::setLength().
  80. * Save session only when there is change since the last serialization
  81. This is a slight optimization not to cause useless disk access.
  82. This only applies to saving session automatically (see
  83. --save-session-interval). aria2.saveSession and serialization at
  84. the end of the session are always performed as before.
  85. When serialization, we first check that whether there is any change
  86. since the last serialization. To do this, we first calculate hash
  87. value of serialized content without writing into file. Then compare
  88. this value to the value of last serialization. If they do not
  89. match, perform serialization.
  90. * Fix (unknown length) downloads larger than 2GiB
  91. Closes #215
  92. * Fix F_PREALLOC based allocation on some OSX versions
  93. * Use index.html as filename for conditional-get when file is missing
  94. in URI
  95. Previously we disabled conditional-get if file part is missing in
  96. URI. But we use constant string "index.html" in this case, so we
  97. can do the same to determine the modification time. In this patch,
  98. if we have file part in URI, we are not going to set absolute file
  99. path in FileEntry, since it prevents content-disposition from
  100. working.
  101. * Always add README.html to dist_doc_DATA
  102. rst2html is required to produce README.html from README.rst. We
  103. include generated README.html to distribution. And rst2html is not
  104. required when compiling sources in distribution and always
  105. README.html is available.
  106. * Validate token using PBKDF2-HMAC-SHA1.
  107. This change should make token validation more resilient to:
  108. - timing attacks (constant time array compare)
  109. - brute-force/dictionary attacks (PBKDF2)
  110. Closes #220
  111. * Add --disable-websocket configure option
  112. * mingw32: Enable wintls and compile with GMP
  113. By enabling wintls, we can use Windows certificate store to validate
  114. server's certificate. Previously, we built windows build using
  115. openssl and since we don't bundle CA certificates, aria2 fails to
  116. validate server's certificate unless user setups their CA
  117. certificates. GMP provides fast big integer calculations, whic is
  118. used in BitTorrent encryption.
  119. * AppleTLS: Enable BEAST mitigations in ST
  120. Only available in 10.9+, but since we might be building on a
  121. previous version but running on 10.9+, always try to set the option.
  122. * WinTLS: Accept chains with no revocation information.
  123. This is kind what browser do anyway (IE, Firefox, Chrome tested),
  124. what AppleTLS does, what GnuTLS does and what OpenSSL
  125. does. Actually, most browsers will also be OK with the CRL/OCSP
  126. provider being offline. WinTLS will still fail in that case.
  127. Should revocation information be available in the trust chain (CRL
  128. or OCSP) the certificate still will be checked!
  129. "Real" CAs, aka. those provided by the OS or system CA bundle,
  130. usually provide revocation information and are thus still checked.
  131. It should be mostly (only?) custom (organization) CAs that lack
  132. revocation information, but those users might want to use aria2 in
  133. their intranets and VPNs anyway ;)
  134. See #217
  135. * Fix GnuTLS 2.x compatiblity
  136. Closes GH-216
  137. * AppleTLS: Use newer, non-deprecated API in 10.8+
  138. aria2 1.18.5
  139. ============
  140. Release Note
  141. ------------
  142. This release fixes BitTorrent download failure on Mingw build.
  143. Changes
  144. -------
  145. * Ignore error when setting DSCP value
  146. Setting DSCP is additional feature and failure to enable it should
  147. not abort download entirely. This change fixes the bug that windows
  148. build does not perform bittorrent downloads.
  149. aria2 1.18.4
  150. ============
  151. Release Note
  152. ------------
  153. This release adds new RPC authorization mechanism using --rpc-secret
  154. option. The existing --rpc-user and --rpc-passwd options are now
  155. deprecated, and all applications using RPC API is strongly encouraged
  156. to migrate to the new mechanism. See RPC INTERFACE section in aria2
  157. manual page for the details. The new RPC method, aria2.saveSession,
  158. was added, which tells aria2 server to save session file immediately.
  159. There are several enhancements and bug fixes. See the changes for the
  160. details.
  161. Changes
  162. -------
  163. * Added support for RPC channel encryption in aria2rpc
  164. Patch from David Macek
  165. * Add aria2.saveSession RPC method
  166. This method saves the current session to a file specified by
  167. --save-session option. This method returns "OK" if it succeeds.
  168. * Add numStoppedTotal key to aria2.getGlobalStat() RPC method response
  169. It shows the number of stopped downloads in the current session and
  170. not capped by --max-download-result option. On the other hand, the
  171. existing numStopped key also shows the number of stopped downloads,
  172. but it is capped by --max-download-result option.
  173. * Better handling of 30x HTTP status codes
  174. Reference: http://greenbytes.de/tech/tc/httpredirects/
  175. * Implement new RPC authorization using --rpc-secret option
  176. Add future deprecation warning to --rpc-user and --rpc-passwd. Warn
  177. if neither --rpc-secret nor a combination of --rpc-user/rpc-passwd
  178. is set.
  179. * Add --enable-color option to enable/disable terminal color output
  180. * Add DSCP support
  181. * gnutls: Don't fail handshake if returned error is not fatal
  182. * Add workaround GnuTLS bug with OCSP status extension and
  183. non-blocking socket
  184. GnuTLS version 3.1.3 - 3.1.18 and 3.2.0 - 3.2.8, inclusive, has this
  185. bug. For these versions, we disable OCSP status extension.
  186. * Make GnuTLS log level dependent on the aria2 ones
  187. aria2 1.18.3
  188. ============
  189. Release Note
  190. ------------
  191. This release fixes the bug which may cause assertion failure after
  192. multi-file downloads (e.g., multi-file metalink or torrent) are
  193. performed several times due to the bad handling of --bt-max-open-files
  194. option.
  195. Changes
  196. -------
  197. * Fix crash if unpause failed before assigning BtProgressInfoFile
  198. object
  199. * Enable and check PIE in makerelease-osx
  200. * Fix bug that numOpenFile_ is not reduced when MultiDiskAdaptor is
  201. deleted
  202. This bug caused assertion error in
  203. RequestGroupMan::ensureMaxOpenFileLimit
  204. aria2 1.18.2
  205. ============
  206. Release Note
  207. ------------
  208. This release fixes the wrong handling of return value of fork(), which
  209. leads to high CPU usage. The progress readout has some color output.
  210. Mingw32 build now receives colorized output. Mingw32 build now can
  211. read unicode command-line arguments. The build script of OSX was
  212. rewritten. The --bt-max-open-files now limits the number of opened
  213. file globally for multi-file downloads instead of per download basis.
  214. Changes
  215. -------
  216. * Remove the outdated, broken build_osx_release.sh
  217. * Initial revision of the a new OSX release Makefile
  218. * Allow using libgmp with AppleTLS/WinTLS
  219. * Fix crash when metaurl contains unsupported URI or text
  220. * Fix bad fork() return value handling
  221. * Use some colors in progress reports (where available)
  222. * Implement basic color support for the Windows console
  223. Only \033[*m (SGR) is supported, with a 16+16 color terminal.
  224. * AppleTLS: Implement PKCS12 loading.
  225. * Limit number of opened file globally with --bt-max-open-files option
  226. This change changes the behavior of --bt-max-open-files. Previously,
  227. it specifies the maximum number of opened files for each multi-file
  228. download. Since it is more useful to limit the number globally, the
  229. option now specifies the global limit. This change suggests that
  230. aria2.changeOption() method now ignores --bt-max-open-files and
  231. aria2.changeGlobalOption now reads it and dynamically change the
  232. limit.
  233. * Don't fail multiple concurrent dl same file if auto-file-renaming is
  234. enabled
  235. * mingw32: Use CommandLineToArgvW() and GetCommandLineW() to read
  236. cmd-line args
  237. This change enables aria2 to read unicode characters in
  238. command-line.
  239. aria2 1.18.1
  240. ============
  241. Release Note
  242. ------------
  243. This release fixes the percent-encoding bug which affects file name
  244. encodings. It adds PKCS12 support in certificate import. It also adds
  245. experimental internal implementation of message digest functions, ARC4
  246. cipher and bignum. It means that no external libraries are required to
  247. build BitTorrent support, but this feature is still marked as
  248. experimental. This release also fixes the android build with NDK r9.
  249. Changes
  250. -------
  251. * LibsslTLSContext: Remove weak cipher suite
  252. * AppleTLS: Enable --certificate
  253. * util::percentEncodeMini: Fix regression bug removed unsignedness
  254. srange-based for around std::string is convenient but several
  255. functions depend unsigned char for correctness and readability.
  256. * Log exception; throw error if loading private key and/or certificate
  257. failed
  258. * Provide internal ARC4 implementation
  259. Now you can build bittorrent support without without external
  260. libraries, meaning you can skip libnettle, libgmp, libgcrypt, GnuTLS
  261. and OpenSSL on OSX (for now).
  262. * Internal implementation of DHKeyExchange
  263. Reusing a bignum (well, unsigned very-long) implementation I had
  264. lying around for years and just cleaned up a bit and brought to
  265. C++11 land.
  266. It might not be the most performant implementation, but it shoud be
  267. fast enough for our purposes and will go a long way of removing
  268. gcrypt, nettle, gmp, openssl dependencies when using AppleTLS and
  269. WinTLS (upcoming).
  270. * PKCS12 support in --certificate and --rpc-certificate options.
  271. * Add --disable-ssl configure option
  272. * Add internal md5 and sha1 message digests
  273. * Fix AppleMessageDigestImpl use with large data
  274. * Set old cookie's creation-time to new cookie on replacement
  275. As described in http://tools.ietf.org/html/rfc6265#section-5.3
  276. * Fix link error with Android NDK r9
  277. Since Android ndk r9, __set_errno is deprecated. It is now defined
  278. as inline function in errno.h. The syscall assembly calls
  279. __set_errno, but since libc.so does not export it, the link
  280. fails. To workaround this, replace all occurrences of __set_errno
  281. with a2_set_errno and define it as normal C function.
  282. aria2 1.18.0
  283. ============
  284. Release Note
  285. ------------
  286. This release changes the default disk cache size to 16 MiB. To change
  287. the default size, --with-disk-cache configure option was added. Now
  288. used URIs are also saved by --save-session option. The control file is
  289. now always saved if --force-save is given. The ctrl-c handling on
  290. Mingw build was improved. The internal intl library is no longer
  291. supplied. From this release, C++11 compiler is required to build aria2
  292. executable. For gcc, at least 4.6.3 is required.
  293. Changes
  294. -------
  295. * Use AM subdir-objects
  296. Doing so in AM_INIT_AUTOMAKE seems to be the most compatible way of
  297. doing so.
  298. Closes GH-120
  299. * AM_SILENT_RULES([yes]) with backwards-compatiblity
  300. Supported since automake-1.11. There is no point in having the very
  301. verbose compile stuff running about, which cannot even silenced
  302. properly with `make -s` by default. Otherwise, `make V=1` or
  303. `--disable-silent-rules` are your friends
  304. * Fix automake-1.14 am_aux_dir
  305. AC_USE_SYSTEM_EXTENSIONS will cause AC_PROG_CC, which is overridden
  306. by automake-1.14, which will then init (part) of automake, in
  307. particular am_aux_dir expansion, which in turn relies on ac_aux-dir,
  308. which is not initialized at this point, and thus: certain doom (or
  309. fun, depending on your POV and mood :p)
  310. Hence call AC_USE_SYSTEM_EXTENSIONS only after
  311. AM_INIT_AUTOMAKE. This, of course, caused a lot of related macro
  312. shuffling.
  313. Tested against automake-1.10 (OSX Lion/XCode version) and
  314. automake-1.14 (homebrew version)
  315. * Require external gettext for --enable-nls
  316. And stop using the internal flavor with ./intl
  317. * Make AX_CXX_COMPILE_STDCXX_11 test for -stdlib=libc++ via std::shared_ptr
  318. The clang shipped with OSX XCode and clangs not build enabling
  319. libcpp, will default to the libstdc++ headers and lib installed on
  320. the system. In the OSX case, that libstdc++ is the one bundles with
  321. gcc-4.2, which is far too old to provide all required C++11 types,
  322. such as std::shared_ptr. Hence, the C++11 check should try to
  323. compile a program with a C++11 type and try -stdlib=libc++ if the
  324. default lib fails to compile said program.
  325. * Make the configure check for C++11 compiler mandatory
  326. Remove stray "dnl", so that mandatory actually works with (my)
  327. autoreconf.
  328. * Always build doc/manual-src
  329. Should sphinx-build be not available AND the man file not be prsent,
  330. then just "touch" it into existence (and warn about that)
  331. * Win: Use SetConsoleCtrlHandler for SIGINT/SIGTERM
  332. * Implement a simple resource lock (threading)
  333. In this initial implementation Locks are no-ops on platforms other
  334. than Windows.
  335. * Check for sphinx-build during configure
  336. * Add --with-disk-cache configure option
  337. Enables packagers more fine grained control over the default value
  338. without having to mess with config files.
  339. See GH-115
  340. * Change defaults: Enable 16M disk cache by default.
  341. * Always save control file if --force-save is given
  342. * Set log level DEBUG for unittests
  343. * Check that C++ compiler supports override keyword
  344. If the compiler supports override, define CXX11_OVERRIDE as
  345. override, otherwise define it as empty. Use CXX11_OVERRIDE instead
  346. of override.
  347. * AppleTLS: Fix MessageDigestImpl
  348. * AppleTLS: Fix session CFRelease stuff
  349. * Use AX_CXX_COMPILE_STDCXX_11 macro to detect C++0x/C++11 support in
  350. compiler
  351. * Require -std=c++11 and use std::shared_ptr instead of SharedHandle
  352. * Join URI on redirect
  353. * Send HAVE message to the peer which the piece is downloaded from
  354. Historically, aria2 did not send HAVE message to the peer which the
  355. piece is coming from, thinking it is obvious that the peer knows we
  356. have the piece. But it is not obvious if one piece is download from
  357. more than 1 peers (e.g., end game mode). So it is better to send
  358. HAVE to all peers connected.
  359. * Improvements to --follow-torrent=false documentation.
  360. Patch from gt
  361. * SessionSerializer: Truly unique URIs
  362. Before, only spent uris where sanitized not to be contained within
  363. remaining uris. Change this so that each uri in the
  364. union(remaining,spent) get saved once at most. The order of the
  365. uris will won't be changed, with remaining uris going first followed
  366. by spent uris.
  367. Also avoid copying the uri std::strings around during dupe checking,
  368. usually resulting in better performance regarding CPU and space.
  369. * Make getOption RPC method return option for stopped downloads
  370. * SessionSerializer: Save spent URIs as well as remaining ones