Skip to content

Some patches to aria2. Remove connection limit and fix build on macOS.

License

Notifications You must be signed in to change notification settings

hguandl/aria2-patch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

aria2-patch

中文文档

Introduction

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.

Usage

Get the source code

You can download from releases or git.

$ git clone https://github.com/aria2/aria2.git

Apply the patches from this repo

$ git clone https://github.com/hguandl/aria2-patch.git
$ cd aria2
$ patch -p1 < ../aria2-patch/aria2-fast.patch

Build

For Linux users, just see How to build.

For macOS users, please follow these steps:

  1. 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"
  1. Configure and build
$ autoreconf -i
$ ./configure ARIA2_STATIC=yes CXXFLAGS="-O2 -std=c++14" --prefix=/usr/local
$ make install

References

About

Some patches to aria2. Remove connection limit and fix build on macOS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published