Properly handle unexpected socket errors
MODIFY
lib/express/server.js
lib/express/server.js
@@ -44,6 +44,7 @@ async function server (configureRoutes, port, hostname = null) {
});
httpServer.on('connection', (socket) => {
socket.setTimeout(600 * 1000); // 10 minute timeout
+ socket.on('error', reject);
});
configureServer(app, configureRoutes);

Properly handle unexpected socket errors (#186)