From ad1e8fb4f82bd80d381ef53c68d3db8c87c352b3 Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Thu, 18 Aug 2011 20:54:04 +0100 Subject: [PATCH] limit the graceful shutdown time to 3 seconds --- node/server.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/node/server.js b/node/server.js index a31f6a0f..db16f834 100644 --- a/node/server.js +++ b/node/server.js @@ -378,6 +378,10 @@ async.waterfall([ process.exit(0); }); + + setTimeout(function(){ + process.exit(1); + }, 3000); } //connect graceful shutdown with sigint and uncaughtexception