Skip to content

Commit

Permalink
Added throttling limitation
Browse files Browse the repository at this point in the history
Signed-off-by: vhnes <ext-vladyslav.hnes@here.com>
  • Loading branch information
VladyslavHnes committed May 14, 2024
1 parent 8bd6131 commit 1fc694b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion xyz-hub-service/src/main/resources/connectors.json
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@
},
"connectionSettings": {
"maxConnections": 32,
"maxConnectionsPerClient": 3
"maxConnectionsPerClient": 10
},
"remoteFunctions": {
"local": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public void testClientThrottling() {
.toArray(CompletableFuture[]::new);

CompletableFuture.allOf(futures).join();
assertEquals(3, successfulCount.get());
assertEquals(12, tooManyRequestsCount.get());
assertEquals(10, successfulCount.get());
assertEquals(5, tooManyRequestsCount.get());
}

private HttpResponse<String> getIterateSpace(String spaceId, AuthProfile profile) throws IOException, InterruptedException {
Expand Down

0 comments on commit 1fc694b

Please sign in to comment.