Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating New HTTP Client in Keycloak EntityResolutionService #1773

Open
imdominicreed opened this issue Nov 18, 2024 · 0 comments
Open

Creating New HTTP Client in Keycloak EntityResolutionService #1773

imdominicreed opened this issue Nov 18, 2024 · 0 comments
Labels
comp:policy Policy Configuration ( attributes, subject mappings, resource mappings, kas registry)

Comments

@imdominicreed
Copy link
Contributor

On every call to Keycloak's implementation of EntityResolutionService (ERS), a new HTTP Client is created. This is specifically when create a new gocloak.Gocloak (reference to code).

When a massive amount of decrypts are done, this can create connection errors, due to lack of connection pooling. For me, when this happens, ERS returns an error specifically connection reset by peer.

A quick fix, I ran was just using a global resty.Client and using it in gocloak.Gocloak on creation.

@jrschumacher jrschumacher added the comp:policy Policy Configuration ( attributes, subject mappings, resource mappings, kas registry) label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:policy Policy Configuration ( attributes, subject mappings, resource mappings, kas registry)
Projects
None yet
Development

No branches or pull requests

2 participants