java.net.SocketTimeoutException: Read timed out

When I try to fetch the data from my custom user federation service, I am getting this error:
Executing request failed: java.net.SocketTimeoutException: Read timed out

I have added:

ENV JAVA_OPTS_APPEND=“-Dkeycloak.connectionsHttpClient.default.socket-timeout-millis=10000”

And I saw that socket timeout is configured in:

class DefaultHttpClientFactory
     private static final String configScope = "keycloak.connectionsHttpClient.default.";

     long socketTimeout = config.getLong("socket-timeout-millis", 5000L);

but is not working… Am I missing something in here?

Keycloak version 23.0.0