From 120b88042791f2f89d86104bc89b41da9d11d4f0 Mon Sep 17 00:00:00 2001 From: Guus der Kinderen Date: Tue, 5 Apr 2016 11:34:02 +0200 Subject: [PATCH] KEYCLOAK-2746: By default, allow for concurrent usage The nature of Keycloak makes it very plausible that it is used in a concurrent setting. With that in mind, it would make sense to, by default, allow for more than one concurrent Resteasy connection in the admin client code. --- .../src/main/java/org/keycloak/admin/client/Keycloak.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/admin-client/src/main/java/org/keycloak/admin/client/Keycloak.java b/integration/admin-client/src/main/java/org/keycloak/admin/client/Keycloak.java index 92655e0232..52c55619e4 100755 --- a/integration/admin-client/src/main/java/org/keycloak/admin/client/Keycloak.java +++ b/integration/admin-client/src/main/java/org/keycloak/admin/client/Keycloak.java @@ -46,7 +46,7 @@ public class Keycloak { Keycloak(String serverUrl, String realm, String username, String password, String clientId, String clientSecret, ResteasyClient resteasyClient){ config = new Config(serverUrl, realm, username, password, clientId, clientSecret); - client = resteasyClient != null ? resteasyClient : new ResteasyClientBuilder().build(); + client = resteasyClient != null ? resteasyClient : new ResteasyClientBuilder().connectionPoolSize(10).build(); tokenManager = new TokenManager(config, client);