Skip to content

Commit 2e30c3f

Browse files
committed
Fix #22363: set max queue size to 100
See #39 See openanalytics/shinyproxy#65 Tested using siege performance test tool using 100 concurrent users accessing a proxied resource. Without this change 77% of the requests succeeds, with the change 100% of the requests succeeds.
1 parent 6c7447f commit 2e30c3f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/eu/openanalytics/containerproxy/util/ProxyMappingManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public void getConnection(ProxyTarget target, HttpServerExchange exchange, Proxy
8888
super.getConnection(target, exchange, callback, timeout, timeUnit);
8989
}
9090
};
91+
proxyClient.setMaxQueueSize(100);
9192
proxyClient.addHost(target);
9293

9394
mappings.put(mapping, proxyId);

0 commit comments

Comments
 (0)