← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19069: minor, increase offline check from 10 to 30 seconds

 

------------------------------------------------------------
revno: 19069
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-04-30 17:14:33 +0700
message:
  minor, increase offline check from 10 to 30 seconds
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.availability.js


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.availability.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.availability.js	2014-05-06 03:55:23 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.availability.js	2015-04-30 10:14:33 +0000
@@ -44,14 +44,14 @@
  *            default is 1000.
  */
 dhis2.availability.startAvailabilityCheck = function( onlineInterval, offlineInterval ) {
-  onlineInterval = onlineInterval ? onlineInterval : 10000;
+  onlineInterval = onlineInterval ? onlineInterval : 30000;
   offlineInterval = offlineInterval ? offlineInterval : 1000;
 
   function _checkAvailability() {
     $.ajax({
       url: "../dhis-web-commons-stream/ping.action",
       cache: false,
-      timeout: 10000,
+      timeout: 30000,
       dataType: "text",
       success: function( data, textStatus, jqXHR ) {
         try {
@@ -106,7 +106,7 @@
     url: "../dhis-web-commons-stream/ping.action",
     async: false,
     cache: false,
-    timeout: 10000,
+    timeout: 30000,
     dataType: "json",
     success: function( data, textStatus, jqXHR ) {
       dhis2.availability._isAvailable = true;