Skip to content

Commit

Permalink
fastparamfetch: Improve aria opts
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Nov 11, 2024
1 parent c9515c6 commit 486cd9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fastparamfetch/paramfetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func fetchWithAria2c(ctx context.Context, out, url string) error {
return xerrors.New("aria2c not found in PATH")
}

cmd := exec.CommandContext(ctx, aria2cPath, "--continue", "-x16", "-s16", "--dir", filepath.Dir(out), "-o", filepath.Base(out), url)
cmd := exec.CommandContext(ctx, aria2cPath, "--lowest-speed-limit", "16K", "-m100", "--retry-wait", "10", "--continue", "-x16", "-s16", "--dir", filepath.Dir(out), "-o", filepath.Base(out), url)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr

Expand Down

0 comments on commit 486cd9a

Please sign in to comment.