clear timeout
This commit is contained in:
@@ -151,6 +151,9 @@ function getCloudronAvatar(req, res, next) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getEmailDnsRecords(req, res, next) {
|
function getEmailDnsRecords(req, res, next) {
|
||||||
|
|
||||||
|
req.clearTimeout();
|
||||||
|
|
||||||
settings.getEmailDnsRecords(function (error, records) {
|
settings.getEmailDnsRecords(function (error, records) {
|
||||||
if (error) return next(new HttpError(500, error));
|
if (error) return next(new HttpError(500, error));
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -267,7 +267,7 @@ function getEmailDnsRecords(callback) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
dns.platform.timeout = 8000;
|
dns.platform.timeout = 5000; // hack so that each query finish in 5 seconds
|
||||||
|
|
||||||
async.series([
|
async.series([
|
||||||
checkMx,
|
checkMx,
|
||||||
|
|||||||
Reference in New Issue
Block a user