Skip to content

How long does the client last? #946

@du201

Description

@du201

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions