1
0
Fork 0

add timeout (#7398)

(cherry picked from commit 800acadfcabc508cf9c65a18e7c0032b4bfb0c62)
This commit is contained in:
Simon 2018-11-21 14:16:23 +01:00 committed by Jan
parent 0a7c7446af
commit c9e44046a2
1 changed files with 2 additions and 1 deletions

View File

@ -143,7 +143,8 @@ function readOnly (options) {
const res = request[r[1]]({
url: `${adbInstance.arangods[0].url}${r[2]}`,
body: Object.keys(r[4]).length ? JSON.stringify(r[4]) : '',
auth: { username: r[3], password: '' }
auth: { username: r[3], password: '' },
timeout: 60.0
});
try {
bodies.push(JSON.parse(res.body));