From a8cc43b393efee77d12d42b967164505dbc9a0a5 Mon Sep 17 00:00:00 2001 From: Jan Date: Mon, 10 Dec 2018 12:50:54 +0100 Subject: [PATCH] increase timeout for Foxx proxying (#7707) --- js/actions/_admin/foxx/app.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/actions/_admin/foxx/app.js b/js/actions/_admin/foxx/app.js index cd1e6f909b..11b2aa7210 100644 --- a/js/actions/_admin/foxx/app.js +++ b/js/actions/_admin/foxx/app.js @@ -55,13 +55,17 @@ function proxyLocal (method, url, qs, body, headers = {}) { if (body) { headers['content-length'] = body.length; } - const res = request({ + const req = { method, url, qs, headers, body - }); + }; + if (require('internal').db._version(true)['maintainer-mode'] === 'true') { + req.timeout = 300; + } + const res = request(req); if (res.json && res.json.errorNum) { throw new ArangoError(res.json); }