-
Notifications
You must be signed in to change notification settings - Fork 83
Killing webpack-serve leaves an extra node http server running on Win10 #37
Comments
Thanks for the issue 🍺 Unfortunately we're already using what's available to us to determine if the process should end, and we've got the right sequence of handlers in place to end the server. You can view that code here: Lines 65 to 73 in 8d160d8
Windows unfortunately still sucks at the console/terminal. webpack-dev-server would see an issue on this reported every few months fairly regularly. If you can figure out a fix for your env on windows, we'd happily welcome a Pull Request. |
We're closing this issue as stale as it's more than 30 days without activity, and without an associated Pull Request. Please feel free to continue discussion. We'll reopen this issue if anything actionable is posted. |
Thanks a lot ! @shellscape |
This issue is for a:
Code
CLI Command
$ webpack-serve ./webpack.config.js
webpack.config.js
https://gist.github.com/cjmoran/7d220cf0616b6ffcd96614ace23e3202
Expected Behavior
Hitting Ctrl+C in my console while running webpack-serve will kill webpack-serve, including the node server it's running.
Actual Behavior
Hitting Ctrl+C in my console kills webpack-serve and the terminal exits the program, but I can see one of its two Node.js processes stick around in task manager.
This means that next time I go to start the server, I'll be met with this error:
webpack-serve is able to continue running and host files after this, which is commendable, but every restart also leaves yet another node exe running and eating memory in the background: https://i.imgur.com/HMVXwbE.jpg
How Do We Reproduce?
Start webpack-serve on Windows 10 (using Git Bash included with the official Git client), hit Ctrl+C to kill, then start again and see if you get the 'port in use' error.
The text was updated successfully, but these errors were encountered: