Skip to content

No Graceful Shutdown? #287

Closed
Closed
@alistair-hmh

Description

@alistair-hmh

Expected behavior

Proxy closes when the parent process receives SIGINT or exit.

Actual behavior

Proxy keeps running

Setup

  • http-proxy-middleware: 0.18.0
  • server: express 4.16.3

proxy middleware configuration

const options = {
    target: 'http://localhost:3001',
    changeOrigin: true,
    ws: true
};

const appProxy = proxy(options);

server mounting

var app = express();

app.use('/', appProxy);
app.listen(3000);

Using this config, kill the app. The middleware proxy will keep running.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions