Socket reconnection logic

To test the socket reconnection logic, i've increased the number of times the UI will attempt to try and connect to the socket url.
This commit is contained in:
Jared Tabor 2015-01-06 11:28:46 -05:00
parent 7c7a68dfad
commit 5e2f915236

View File

@ -646,7 +646,7 @@ angular.module('Tower', [
// monitor socket status
checkCount = 0;
setInterval(function() {
if (sock.checkStatus() === 'error' || checkCount > 2) {
if (sock.checkStatus() === 'error' || checkCount > 5) {
// there's an error or we're stuck in a 'connecting' state. attempt to reconnect
$log.debug('socket status: ' + sock.checkStatus());
$log.debug('attempting new socket connection');
@ -660,7 +660,7 @@ angular.module('Tower', [
else {
checkCount = 0;
}
}, 3000);
}, 5000);
});
if (!$AnsibleConfig) {