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 long does the client last? #946

Open
du201 opened this issue Jan 9, 2025 · 0 comments
Open

How long does the client last? #946

du201 opened this issue Jan 9, 2025 · 0 comments

Comments

@du201
Copy link

du201 commented Jan 9, 2025

I haven't found related information either in the doc or in other issues, so I am posting it here.

I am writing a Golang HTTP server which accesses Elasticsearch. When the server starts, I create the client using the elasticsearch.NewClient. Do I need to manually refresh the client periodically to keep the HTTP connection alive? Or is that already handled by the client, and I can just continue using the same client indefinitely? Thank you so much for your time and help in advance.

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

1 participant