[react-pacakger] Max idle time for socket server is too long

This commit is contained in:
Amjad Masad 2015-09-01 11:51:51 -07:00
parent c980942899
commit f9b1658c6f
1 changed files with 2 additions and 2 deletions

View File

@ -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);