Closed
Description
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.