# HG changeset patch
# User Rafa Alonso <rafael.alonso@openbravo.com>
# Date 1411052882 -7200
#      Thu Sep 18 17:08:02 2014 +0200
# Node ID 66894335d44066e46e68322a52db863a1d7273a7
# Parent  8a271d217531242f406a7817544aa65f57fd4175
Timouts

diff -r 8a271d217531 -r 66894335d440 web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
--- a/web/org.openbravo.mobile.core/source/model/ob-terminal-model.js	Thu Sep 18 16:18:09 2014 +0200
+++ b/web/org.openbravo.mobile.core/source/model/ob-terminal-model.js	Thu Sep 18 17:08:02 2014 +0200
@@ -415,7 +415,7 @@
     var ajaxRequest = new enyo.Ajax({
       url: this.get('loginUtilsUrl'),
       cacheBust: false,
-      timeout: 5000,
+      timeout: 20000,
       method: 'GET',
       handleAs: 'json',
       contentType: 'application/json;charset=utf-8',
@@ -571,7 +571,7 @@
   loadRegisteredWindows: function () {
     this.cleanWindows();
 
-    setInterval(OB.UTIL.processLogClientAll, 10000);
+    setInterval(OB.UTIL.processLogClientAll, 30000);
 
     var countOfLoadedWindows = 0;
     _.each(this.windowRegistry.registeredWindows, function (windowp) {
@@ -889,7 +889,7 @@
       cacheBust: false,
       method: 'GET',
       handleAs: 'json',
-      timeout: 5000,
+      timeout: 20000,
       contentType: 'application/json;charset=utf-8',
       success: function (inSender, inResponse) {
         me.closeSession();
@@ -911,7 +911,7 @@
       cacheBust: false,
       method: 'GET',
       handleAs: 'json',
-      timeout: 5000,
+      timeout: 20000,
       contentType: 'application/json;charset=utf-8',
       success: function (inSender, inResponse) {
         me.triggerLogout();
diff -r 8a271d217531 -r 66894335d440 web/org.openbravo.mobile.core/source/utils/logClientSyncUtils.js
--- a/web/org.openbravo.mobile.core/source/utils/logClientSyncUtils.js	Thu Sep 18 16:18:09 2014 +0200
+++ b/web/org.openbravo.mobile.core/source/utils/logClientSyncUtils.js	Thu Sep 18 17:08:02 2014 +0200
@@ -57,7 +57,7 @@
             successCallback();
           }
         }
-      }, null, null, 4000);
+      }, null, null, 20000);
     }
   };
 }());
\ No newline at end of file
diff -r 8a271d217531 -r 66894335d440 web/org.openbravo.mobile.core/source/utils/ob-utilities.js
--- a/web/org.openbravo.mobile.core/source/utils/ob-utilities.js	Thu Sep 18 16:18:09 2014 +0200
+++ b/web/org.openbravo.mobile.core/source/utils/ob-utilities.js	Thu Sep 18 17:08:02 2014 +0200
@@ -151,14 +151,14 @@
         if (notConnectedCallback) {
           notConnectedCallback();
         }
-      });
+      }, true, 20000);
       return;
     } else if (navigator.onLine) {
       // It can be a false positive, make sure with the ping
       var ajaxRequest = new enyo.Ajax({
         url: '../../security/SessionActive?id=0',
         cacheBust: true,
-        timeout: 5000,
+        timeout: 20000,
         method: 'GET',
         handleAs: 'json',
         contentType: 'application/x-www-form-urlencoded; charset=UTF-8',
