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

[Bug] Persistent logs from okhttp3.OkHttpClient when using GBFeaturesRepository #2524

Open
Amakachi opened this issue May 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Amakachi
Copy link

Summary

When using the the growthbook library GBFeaturesRepository.class, to fetch features there's a number of logs from HttpClient with message okhttp3.OkHttpClient: A connection to https://cdn.growthbook.io/ was leaked. Did you forget to close a response body? To see where this was allocated, set the OkHttpClient logger level to FINE: Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE); .

Expected Behavior

Ideally the connection should be closed when once the response is received

Current Behavior

Lots of logs relating to a memory leak from OkHttpClient

@Amakachi Amakachi added the bug Something isn't working label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant