Skip to content

Set Connection: close header in HTTP responses when closing #127984

@DaveCTurner

Description

@DaveCTurner

As of #96363 a shutting-down Elasticsearch node will close HTTP connections as soon as they become idle. However if the client is using HTTP pipelining then it may be able to keep the connection open indefinitely without knowing that the node is trying to shut down.

We should set the Connection: close header on responses sent after we start to shut down so that the client can react by stopping its use of the connection to the shutting-down node, even if it is pipelining requests.

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