Skip to content

Possible connection leakage #1582

Open
Open
@azhuchkov

Description

@azhuchkov

After migrating from node.js v10.24.1 to v16.14.2, encountered some weird behaviour: different applications report connection troubles, something like no buffer space available. Also my application which uses Server Sent Events (SSE) stopped detect SSE channel disconnects (which is proxied under the hood).

The workaround looks like:

onProxyReq: (proxyReq, req, res) => {
    proxyReq.on('close', () => res.end());
}

Some more context:

  1. macOS,
  2. nvm 0.39.1,
  3. create-react-app,
  4. http-proxy-middleware 2.0.6,
  5. http-proxy 1.17.8.

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