Skip to content

"Connection: close" header from target server is not honored #1000

@nicolayr

Description

@nicolayr

When the target server sends a Connection: close header, normal behavior as per the HTTP protocol is that both the client and server should close the connection when data transmission has completed.

Currently node-http-proxy doesn't honor this. Instead the connection is left open, which results in ECONNRESET errors being thrown on subsequent requests.

There are several related open issues, but I couldn't find any that directly address the same problem. For example: #446, #813, #859, #757, #966.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions