tarkos
tarkos

Reputation: 197

Keycloak - how to set timeout for http client used in keycloak library

I am using keycloak-adapter-core in version 9.0.2 and need to set a timeout for a HTTP connection between application and Keycloak server. Unfortunately, I do not see this option in the library: https://www.keycloak.org/docs/latest/securing_apps/#_java_adapter_config e.g. connection-pool-size.

I recheck also code library and I do not see that timeout is set up.

Do you know any workaround for this ?

Upvotes: 5

Views: 2415

Answers (1)

bruegth
bruegth

Reputation: 701

You need to use

socket-timeout-millis 

in your config. See here for reference

Upvotes: 1

Related Questions