Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313744

Summary: SimpleArtifactRepository does not allow the user to limit the number of threads used for downloads
Product: [Eclipse Project] Equinox Reporter: Matthew Piggott <matthew>
Component: p2Assignee: Matthew Piggott <matthew>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: irbull, pascal, tjwatson
Version: unspecifiedFlags: pascal: review+
Target Milestone: 3.6.1   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Add user control for max threads tjwatson: iplog+

Description Matthew Piggott CLA 2010-05-20 11:02:41 EDT
Created attachment 169359 [details]
Add user control for max threads

Currently there isn't a way for the user to limit the number of concurrent downloads made by the SimpleArtifactRepository, however it is possible for the repository owner to limit the number of concurrent connections, really the user should have the same control.

The attached patch uses the minimum of the user and repository settings, in the event they are not set the default value is considered.  I've also written some tests for the getMaximumThreads method.
Comment 1 Pascal Rapicault CLA 2010-08-18 12:20:00 EDT
Patch reviewed and committed in HEAD and 3.6.x.
Comment 2 DJ Houghton CLA 2010-09-16 12:03:17 EDT
There was a problem with tagging HEAD and this won't appear in integration builds until the first build after 3.7 M2.