mirror of https://gitee.com/bigwinds/arangodb
add timeout (#7398)
(cherry picked from commit 800acadfcabc508cf9c65a18e7c0032b4bfb0c62)
This commit is contained in:
parent
0a7c7446af
commit
c9e44046a2
|
@ -143,7 +143,8 @@ function readOnly (options) {
|
||||||
const res = request[r[1]]({
|
const res = request[r[1]]({
|
||||||
url: `${adbInstance.arangods[0].url}${r[2]}`,
|
url: `${adbInstance.arangods[0].url}${r[2]}`,
|
||||||
body: Object.keys(r[4]).length ? JSON.stringify(r[4]) : '',
|
body: Object.keys(r[4]).length ? JSON.stringify(r[4]) : '',
|
||||||
auth: { username: r[3], password: '' }
|
auth: { username: r[3], password: '' },
|
||||||
|
timeout: 60.0
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
bodies.push(JSON.parse(res.body));
|
bodies.push(JSON.parse(res.body));
|
||||||
|
|
Loading…
Reference in New Issue