add support for parallel downloads#682
Open
mmdbalkhi wants to merge 5 commits intovoid-linux:masterfrom
Open
Conversation
Member
|
error handling in libfetch is not thread safe. |
Author
|
@Duncaen do you mean that concurrent fetches themselves are unsafe or only the error reporting in libfetch? |
Member
|
Its using a bunch of global variables, like Lines 164 to 184 in 7553cb7 |
Member
just in case this was lost to the disconnect. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The number of concurrent downloads can be configured with:
One open question is the preferred way to present download progress when multiple downloads happen concurrently.
Currently the fetch callback output is serialized with a mutex and
only package completion messages are printed. The detailed per-package
progress output used in the single-download case does not translate
well to parallel downloads.
Possible options could be:
For example:
Feedback on the preferred output style would be appreciated before
finalizing the UI behavior.
Note: due to connectivity limitations in Iran, my responses or
updates to this PR may occasionally take a few days.