Skip to content

How are we achieving parallel downloading here? #9

Answered by TCNOco
nikhildr22 asked this question in Q&A
Discussion options

You must be logged in to vote

Nothing crazy, just multithreaded downloads.

File-DownloadMethods.ps1

  1. Initialize-Aria2 - This installs aria2 either through Chocolatey or by downloading the aria2 distribution, and extracting the exe.
  2. Get-Aria2File - Makes sure aria2 is installed, then tried to download a file with the following command: aria2c --disable-ipv6 -x 8 -s 8 --continue --out="$OutputPath" "$Url" --console-log-level=error --download-result=hide.

--disable-ipv6 fixes issues when using Tailscale and other VPN software... For some reason finds those connections and tries to download through them, causing downloads to fail randomly. -x 8 (--max-connection-per-server) allows multithreading over 8 connections to the…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nikhildr22
Comment options

Answer selected by nikhildr22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants