mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03: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:
parent
7c7a68dfad
commit
5e2f915236
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user