From ff1ca5d93373985579e44c10a0afb7f22571679b Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Fri, 29 Mar 2019 16:26:36 +0100 Subject: [PATCH] feat(xen-api/call): 1 hour timeout --- packages/xen-api/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/xen-api/src/index.js b/packages/xen-api/src/index.js index adab73265..89775d2b3 100644 --- a/packages/xen-api/src/index.js +++ b/packages/xen-api/src/index.js @@ -66,7 +66,7 @@ export class Xapi extends EventEmitter { constructor(opts) { super() - this._callTimeout = makeCallSetting(opts.callTimeout, 0) + this._callTimeout = makeCallSetting(opts.callTimeout, 60 * 60 * 1e3) // 1 hour but will be reduced in the future this._httpInactivityTimeout = opts.httpInactivityTimeout ?? 5 * 60 * 1e3 // 5 mins this._eventPollDelay = opts.eventPollDelay ?? 60 * 1e3 // 1 min this._pool = null