fix(syslog): chart marks give up after 10 s rather than waiting on (#6002)
CI / lint (push) Successful in 2s
CI / unit (push) Successful in 1m28s
CI / integration (push) Successful in 1m38s
CI / publish (push) Successful in 1m12s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-19 06:40:01 -04:00
co-authored by Claude Opus 5.5
parent 521d84f318
commit 96f774ce24
+2 -1
View File
@@ -60,7 +60,8 @@
// Fetch marks from `url` and put them on each chart, redrawing it; `note`
// (an element, optional) says in words how many there are.
window.stewardMarkCharts = function (url, charts, note) {
fetch(url, { credentials: 'same-origin' })
// A deadline, so a slow answer leaves the charts unmarked rather than waiting on.
fetch(url, { credentials: 'same-origin', signal: AbortSignal.timeout(10000) })
.then(function (r) { return r.ok ? r.json() : { marks: [] }; })
.then(function (body) {
var marks = body.marks || [];