Bump request timeout to a minute, some servers are just too slow

This commit is contained in:
Girish Ramakrishnan
2023-12-29 16:19:52 +01:00
parent fa842034ed
commit e49398eb47

View File

@@ -39,7 +39,7 @@ async function initializeExpressSync() {
const QUERY_LIMIT = '2mb', // max size for json and urlencoded queries (see also client_max_body_size in nginx)
FIELD_LIMIT = 2 * 1024 * 1024; // max fields that can appear in multipart
const REQUEST_TIMEOUT = 20000; // timeout for all requests (see also setTimeout on the httpServer)
const REQUEST_TIMEOUT = 60000; // timeout for all requests (see also setTimeout on the httpServer)
const json = middleware.json({ strict: true, limit: QUERY_LIMIT }), // application/json
urlencoded = middleware.urlencoded({ extended: false, limit: QUERY_LIMIT }); // application/x-www-form-urlencoded