From f9b1658c6fc9b99fde1d3799e46fe2c076e0048b Mon Sep 17 00:00:00 2001 From: Amjad Masad Date: Tue, 1 Sep 2015 11:51:51 -0700 Subject: [PATCH] [react-pacakger] Max idle time for socket server is too long --- react-packager/src/SocketInterface/SocketServer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react-packager/src/SocketInterface/SocketServer.js b/react-packager/src/SocketInterface/SocketServer.js index d3cb752d..b292b2bf 100644 --- a/react-packager/src/SocketInterface/SocketServer.js +++ b/react-packager/src/SocketInterface/SocketServer.js @@ -15,7 +15,7 @@ const debug = require('debug')('ReactPackager:SocketServer'); const fs = require('fs'); const net = require('net'); -const MAX_IDLE_TIME = 10 * 60 * 1000; +const MAX_IDLE_TIME = 30 * 1000; class SocketServer { constructor(sockPath, options) { @@ -118,7 +118,7 @@ class SocketServer { this._deathTimer = setTimeout(() => { if (this._jobs <= 0) { debug('server dying', process.pid); - process.exit(1); + process.exit(); } this._dieEventually(); }, MAX_IDLE_TIME);