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.
Expected behavior
Proxy closes when the parent process receives
SIGINTorexit.Actual behavior
Proxy keeps running
Setup
0.18.04.16.3proxy middleware configuration
server mounting
Using this config, kill the app. The middleware proxy will keep running.