|
|
@ -221,7 +221,7 @@ middleware.privateUploads = function(req, res, next) {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
middleware.busyCheck = function(req, res, next) {
|
|
|
|
middleware.busyCheck = function(req, res, next) {
|
|
|
|
if (global.env === 'production' && toobusy()) {
|
|
|
|
if (global.env === 'production' && (!meta.config.hasOwnProperty('eventLoopCheckEnabled') || parseInt(meta.config.eventLoopCheckEnabled, 10) === 1) && toobusy()) {
|
|
|
|
res.type('text/html').sendFile(path.join(__dirname, '../../public/503.html'));
|
|
|
|
res.type('text/html').sendFile(path.join(__dirname, '../../public/503.html'));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
next();
|
|
|
|
next();
|
|
|
|