From 0a1b93a7948ebdf8a86132d676fca2e1beebef46 Mon Sep 17 00:00:00 2001 From: Sungmin Kim Date: Fri, 14 Feb 2014 11:50:28 +0900 Subject: [PATCH] Fixed request web timeout (10 to 30 sec) Fixed job query count in web (30 to 5) Signed-off-by: Sungmin Kim Change-Id: I7d0c55d17445465b92a5134992aff61d7524475e --- dibs-web/app/controllers/jobs_controller.rb | 2 +- dibs-web/public/javascripts/dibs-api.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dibs-web/app/controllers/jobs_controller.rb b/dibs-web/app/controllers/jobs_controller.rb index 2f915b3..6249104 100644 --- a/dibs-web/app/controllers/jobs_controller.rb +++ b/dibs-web/app/controllers/jobs_controller.rb @@ -30,7 +30,7 @@ class JobsController < ApplicationController before_filter :check_login_status - QUERY_CNT = 30 + QUERY_CNT = 5 def list end diff --git a/dibs-web/public/javascripts/dibs-api.js b/dibs-web/public/javascripts/dibs-api.js index 70d601e..1903938 100644 --- a/dibs-web/public/javascripts/dibs-api.js +++ b/dibs-web/public/javascripts/dibs-api.js @@ -296,7 +296,7 @@ function getInfoFromServer(url, successFunction) { url: baseUrl+url, type: 'GET', dataType: 'xml', - timeout: 10000, + timeout: 30000, beforeSend: function() { $.mobile.showPageLoadingMsg(); }, //Show spinner complete: function() { $.mobile.hidePageLoadingMsg() }, //Hide spinner success: function(xml) { @@ -314,7 +314,7 @@ function getInfoFromServerNoPreProcess(url, successFunction) { url: baseUrl+url, type: 'GET', dataType: 'xml', - timeout: 10000, + timeout: 30000, success: function(xml) { setSessionInfo(xml); successFunction(xml); -- 2.34.1