Skip to content

Commit

Permalink
Configurable maxPipeline for the extended worker.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmihajlovski committed Dec 11, 2017
1 parent 7d8aecd commit 21933b0
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -83,7 +83,7 @@ public class ExtendedWorker extends AbstractEventLoop<ExtendedWorker> implements

private final Set<RapidoidConnection> allConnections = Coll.concurrentSet();

private final int maxPipeline;
private final long maxPipeline;

private final int selectorTimeout = 10;

Expand Down Expand Up @@ -131,7 +131,7 @@ public ExtendedWorker(String name, RapidoidHelper helper, NetworkingParams net,
this.helper = helper;
this.sslContext = sslContext;

this.maxPipeline = Conf.HTTP.entry("maxPipeline").or(10);
this.maxPipeline = net.maxPipeline();

final int queueSize = ConfigUtil.micro() ? 1000 : 1000000;
final int growFactor = ConfigUtil.micro() ? 2 : 10;
Expand Down

0 comments on commit 21933b0

Please sign in to comment.