Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use fixed thread pool #278

Merged
merged 1 commit into from Nov 6, 2018
Merged

Use fixed thread pool #278

merged 1 commit into from Nov 6, 2018

Conversation

eed3si9n
Copy link
Member

@eed3si9n eed3si9n commented Nov 1, 2018

Fixes #274

In #249 parallel download switched to using its own thread pool.
It could potentially lead to unbounded download if nobody throttled.
This works around the issue by fixing the number of thread to 6, which is a common per-host max connection count.

Fixes sbt#274

In sbt#249 parallel download switched to using its own thread pool.
It could potentially lead to unbounded download if nobody throttled.
This works around the issue by fixing the number of thread to 6, which is a common per-host max connection count.
@Duhemm
Copy link
Contributor

Duhemm commented Nov 1, 2018

Any reason for making this un-configurable? I'm just thinking that this may save some trouble in the future in case that's too much for a given system. How about about -Dbst.max.parallel.downloads?

@eed3si9n
Copy link
Member Author

eed3si9n commented Nov 1, 2018

@Duhemm I'd like to avoid creating knobs until the very moment it's proven that it fixes something.
Since the original bug report was that there's an unbounded download, I think this the simplest possible fix.

@eed3si9n eed3si9n merged commit 4a0a6c7 into sbt:develop Nov 6, 2018
@eed3si9n eed3si9n deleted the wip/thread-pool branch November 6, 2018 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Apparent unbounded parallel download of all artifacts at once
2 participants