Increase sysadmin route timeout as stopping might take longer

This commit is contained in:
Johannes Zellner
2016-06-30 10:49:43 +02:00
parent f2c897a87d
commit f319919a4f

View File

@@ -236,7 +236,7 @@ function initializeSysadminExpressSync() {
var httpServer = http.createServer(app);
var QUERY_LIMIT = '1mb'; // max size for json and urlencoded queries
var REQUEST_TIMEOUT = 10000; // timeout for all requests
var REQUEST_TIMEOUT = 60000; // timeout for all requests 1 minute as stopping services may take long
var json = middleware.json({ strict: true, limit: QUERY_LIMIT }), // application/json
urlencoded = middleware.urlencoded({ extended: false, limit: QUERY_LIMIT }); // application/x-www-form-urlencoded