Some patches to aria2. Remove connection limit and fix building on macOS.
- Enable resuming to download by default
- Set default concurrent downloads to 128
- Set default max connections to per server to 64 and remove the limit of 16 before
- Set default minimum split size to 1M
- Set default timeout to 30s
- Change the minimum unit of piece length to 1K
- Set default retry times to 2
- Set default split pieces to 128
- Disable checking certificates by default
- Fix defination of
std::make_unique
to build on maxOS.
You can download from releases or git.
$ git clone https://github.com/aria2/aria2.git
$ git clone https://github.com/hguandl/aria2-patch.git
$ cd aria2
$ patch -p1 < ../aria2-patch/aria2-fast.patch
For Linux users, just see How to build.
For macOS users, please follow these steps:
- Install dependencies from Homebrew. To use
gettext
binary, you also need to add it to$PATH
.
$ brew install autoconf automake libtool gettext pkg-config
$ export PATH="/usr/local/opt/gettext/bin:$PATH"
- Configure and build
$ autoreconf -i
$ ./configure ARIA2_STATIC=yes CXXFLAGS="-O2 -std=c++14" --prefix=/usr/local
$ make install