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

How to close the connection of rqlite #14

Open
Rauthy opened this issue May 19, 2021 · 1 comment
Open

How to close the connection of rqlite #14

Rauthy opened this issue May 19, 2021 · 1 comment

Comments

@Rauthy
Copy link

Rauthy commented May 19, 2021

I use rqlite-java to connect rqlite in local cluster. But I can't find the close() method in rqlite-java. I wonder how to close the connection and whether it will cause memory leak. Thanks a lot!

@otoolep
Copy link
Member

otoolep commented May 19, 2021

Assuming you're expecting a Close() method on this: https://github.com/rqlite/rqlite-java/blob/master/src/main/java/com/rqlite/Rqlite.java#L7

it doesn't exist. I don't think it's needed, but I have not measured the memory consumption of the code over time. The code, as it exists now, is mostly for demonstration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants