From 5a3af8dab3f4739592ad5505f7ed858ac7280cd9 Mon Sep 17 00:00:00 2001 From: ARC Date: Wed, 13 May 2015 14:09:57 -0400 Subject: removed http timeout for start/stop/restart APIs - as they take more time to complete --- www/js/app.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'www/js/app.js') diff --git a/www/js/app.js b/www/js/app.js index dd81cbac..6af0dc5a 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -43,8 +43,17 @@ angular.module('zmApp', [ //console.log("*** HTTP INTERCEPTOR CALLED ***"); return { 'request': function (config) { - config.timeout = 15000; - //console.log("*** HTTP INTERCEPTOR CALLED ***"); + if ( !(config.url.indexOf("stop.json") > -1 || + config.url.indexOf("start.json") > -1 || + config.url.indexOf("restart.json") > -1 )) + { + config.timeout = 15000; + } + else + { + console.log ("HTTP INTERCEPT:Skipping HTTP timeout for "+config.url); + } + //console.log("*** HTTP URL INTERCEPTOR CALLED with "+config.url+" ***"); return config; } -- cgit v1.2.3