[pacman-dev] [PATCH] Support parallel download with xfercommand

lesto fante lestofante88 at gmail.com
Sat Oct 31 13:26:13 UTC 2020


> ok, so i can implement the tracking of the PID, but before writing any
> more code I want to make sure this solution is acceptable;
> and if it is, any implementation suggestion is welcome, if not, what
> you think is the solution.
>
> so to recap:
>
> - solution 1 -
> XferCommand called multiple times, non blocking, and a final
> XferCommand with special parameter/XferLockCommand to wait for output.
> We trust XferCommand to start only ParallelDownloads download.
>
> - solution 2 -
> We call XferCommand ParallelDownloads times, and wait for process to
> complete before calling again
>
> - solution 3 -
> XferParallelCommand is added, it will be called with a list of all
> packages, servers and options like ParallelDownloads.
> We trust XferCommand to start only ParallelDownloads download.

@Allan McRae any input on this one?


More information about the pacman-dev mailing list