From 23d106969f4cd49eb39ba6a15eac2a52bc6fea29 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 2 Jul 2019 14:56:43 +0200 Subject: [PATCH] Default timeout for API calls from 30 to 60 seconds --- platypush/backend/http/static/js/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platypush/backend/http/static/js/api.js b/platypush/backend/http/static/js/api.js index f1ca39e6..fc889c5b 100644 --- a/platypush/backend/http/static/js/api.js +++ b/platypush/backend/http/static/js/api.js @@ -1,4 +1,4 @@ -function execute(request, timeout=30000) { +function execute(request, timeout=60000) { var additionalPayload = {}; if (!('target' in request) || !request['target']) { @@ -46,7 +46,7 @@ function execute(request, timeout=30000) { }); } -function request(action, args={}, timeout=30000) { +function request(action, args={}, timeout=60000) { return execute({ type: 'request', action: action,