Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
034fdec8
Commit
034fdec8
authored
Jan 27, 2016
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle connection timeouts better in the getstatus loop by adding
an ajax failure handler.
parent
7c1baa40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
www/aptui/js/status.js
www/aptui/js/status.js
+5
-1
No files found.
www/aptui/js/status.js
View file @
034fdec8
...
@@ -343,7 +343,7 @@ function (_, sup, moment, marked, UriTemplate, ShowImagingModal,
...
@@ -343,7 +343,7 @@ function (_, sup, moment, marked, UriTemplate, ShowImagingModal,
function
StartStatusWatch
()
function
StartStatusWatch
()
{
{
GetStatus
();
GetStatus
();
statusID
=
setInterval
(
GetStatus
,
5
000
);
statusID
=
setInterval
(
GetStatus
,
4
000
);
}
}
function
GetStatus
()
function
GetStatus
()
...
@@ -364,6 +364,10 @@ function (_, sup, moment, marked, UriTemplate, ShowImagingModal,
...
@@ -364,6 +364,10 @@ function (_, sup, moment, marked, UriTemplate, ShowImagingModal,
"
status
"
,
"
status
"
,
"
GetInstanceStatus
"
,
"
GetInstanceStatus
"
,
{
"
uuid
"
:
uuid
});
{
"
uuid
"
:
uuid
});
xmlthing
.
fail
(
function
(
jqXHR
,
textStatus
)
{
console
.
info
(
"
GetStatus failed:
"
+
textStatus
);
statusBusy
=
0
;
});
xmlthing
.
done
(
callback
);
xmlthing
.
done
(
callback
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment