Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

Is it possible to limit the number of active concurrent downloads with this library? #48

Open
mitchdowney opened this issue Sep 29, 2019 · 5 comments

Comments

@mitchdowney
Copy link

I see in the readme that Android automatically limits the number of concurrent downloads to 4. Are the number of concurrent downloads configurable on iOS with this library? I am running into issues where the network gets consumed from too many active downloads on iOS...

@ptelad
Copy link
Contributor

ptelad commented Oct 3, 2019

iOS automatically control the number of concurrent download by it's own logic.
You can see it for yourself by downloading 4+ files at the same time, you'll notice some of them are not downloading at all.

@koji-inoue
Copy link

@ptelad It would be nine if I could change the number of concurrent downloads. Would you like me to open a PR to make the number of concurrent downloads configurable?

@ptelad
Copy link
Contributor

ptelad commented Oct 20, 2019

Are you talking about android or iOS? I'm confused.
On iOS there's nothing to change.
On android, sure, go for it 👍

@koji-inoue
Copy link

I'm talking about both. In iOS, we can use HTTPMaximumConnectionsPerHost that is not exactly the one to limit the number of concurrent downloads but still usable in most of the cases.

@ptelad
Copy link
Contributor

ptelad commented Oct 22, 2019

But on iOS it is currently not limited at all and you can see the results for yourself.
I don't mind adding it to Android but I'm against changing anything on the iOS side.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants