[react-pacakger] Max idle time for socket server is too long
This commit is contained in:
parent
36dfd402b2
commit
39ae5daec3
|
@ -15,7 +15,7 @@ const debug = require('debug')('ReactPackager:SocketServer');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const net = require('net');
|
const net = require('net');
|
||||||
|
|
||||||
const MAX_IDLE_TIME = 10 * 60 * 1000;
|
const MAX_IDLE_TIME = 30 * 1000;
|
||||||
|
|
||||||
class SocketServer {
|
class SocketServer {
|
||||||
constructor(sockPath, options) {
|
constructor(sockPath, options) {
|
||||||
|
@ -118,7 +118,7 @@ class SocketServer {
|
||||||
this._deathTimer = setTimeout(() => {
|
this._deathTimer = setTimeout(() => {
|
||||||
if (this._jobs <= 0) {
|
if (this._jobs <= 0) {
|
||||||
debug('server dying', process.pid);
|
debug('server dying', process.pid);
|
||||||
process.exit(1);
|
process.exit();
|
||||||
}
|
}
|
||||||
this._dieEventually();
|
this._dieEventually();
|
||||||
}, MAX_IDLE_TIME);
|
}, MAX_IDLE_TIME);
|
||||||
|
|
Loading…
Reference in New Issue