[ 
https://issues.apache.org/jira/browse/MRESOLVER-554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17842924#comment-17842924
 ] 

ASF GitHub Bot commented on MRESOLVER-554:
------------------------------------------

laeubi commented on code in PR #489:
URL: https://github.com/apache/maven-resolver/pull/489#discussion_r1587390849


##########
maven-resolver-connector-basic/src/main/java/org/eclipse/aether/connector/basic/BasicRepositoryConnector.java:
##########
@@ -97,15 +100,17 @@ final class BasicRepositoryConnector implements 
RepositoryConnector {
 
     private final ChecksumPolicyProvider checksumPolicyProvider;
 
-    private final int maxThreads;
+    private final int maxDownstreamThreads;
+
+    private final int maxUpstreamThreads;
 
     private final boolean smartChecksums;
 
     private final boolean parallelPut;
 
     private final boolean persistedChecksums;
 
-    private Executor executor;
+    private final ConcurrentHashMap<Boolean, Executor> executors;

Review Comment:
   > with boolean there is no need for null-check and can really be this or 
that.
   
   Just a remark, a `Boolean` can be `null` ... beside that `ConcurrentHashMap` 
does not allows `null` keys...





> Support configuration of upload/download threads individually
> -------------------------------------------------------------
>
>                 Key: MRESOLVER-554
>                 URL: https://issues.apache.org/jira/browse/MRESOLVER-554
>             Project: Maven Resolver
>          Issue Type: Improvement
>          Components: Resolver
>            Reporter: Matt Nelson
>            Assignee: Tamas Cservenak
>            Priority: Major
>             Fix For: 2.0.0, 2.0.0-beta-1
>
>
> Parallel deploys were introduced in MRESOLVER-32. The thread pool 
> configuration is shared for uploads and downloads. It has been observed in 
> our environment that uploads frequently error out when attempting to upload 
> with the default thread pool size(5), but conversely we don't see the same 
> errors for downloads.
> The proposal is to support configuration of upload/download thread pools 
> individually.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to