mirror of
https://github.com/ansible/awx.git
synced 2026-03-08 21:19:26 -02:30
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user