feat(xen-api#_transportCall): timeout after 24 hours

This commit is contained in:
Julien Fontanet
2019-02-15 17:37:17 +01:00
parent 3f3b372f89
commit 8e116063bf
2 changed files with 2 additions and 1 deletions

View File

@@ -1134,7 +1134,7 @@ export class Xapi extends EventEmitter {
Xapi.prototype._transportCall = reduce(
[
function(method, args) {
return this._call(method, args).catch(error => {
return pTimeout(this._call(method, args), HTTP_TIMEOUT).catch(error => {
if (!(error instanceof Error)) {
error = wrapError(error)
}