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.
This commit is contained in:
parent
1f26765546
commit
120b880427
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue