From 51cc43dab13b5cff209f2227be0911385ecffc38 Mon Sep 17 00:00:00 2001 From: 0xorial <0xorial@gmail.com> Date: Mon, 4 Mar 2019 13:22:30 +0200 Subject: [PATCH] do not swallow errors from http server. --- lib/Server.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Server.js b/lib/Server.js index 07c19ff54c..6e09d7f5dc 100644 --- a/lib/Server.js +++ b/lib/Server.js @@ -659,6 +659,10 @@ class Server { this.listeningApp = http.createServer(app); } + this.listeningApp.on('error', (err) => { + this.log.error(err); + }); + killable(this.listeningApp); // Proxy websockets without the initial http request