mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-22 11:12:18 +00:00
fix(cctv): keep an HLS camera's health through the refused viewer's frame
A viewer refused for capacity falls back to /frame after hls.js gives up. For a pullable HLS camera without a snapshot, /frame only has a placeholder or a Street View frame, which says nothing about the stream, yet it wrote degraded over the health that /media owns. /frame now leaves that health as it is; a dead upstream is still reported through /media. Tests: the middleware suite covers both fallbacks, a real upstream failure that still degrades, and cross-site segment and release refusals on a live HLS lease; capacity checks use HLS_LIMITS and HlsCapacityError; the three CCTV suites share one provider harness in src/testSupport. CURRENT-STATE and the changelog fragment describe the refusal.
This commit is contained in:
1 parent
f5f5f04b5d
commit
ed38a1ab3f
10 files changed
+283
-321
No files matched your search
@@ -1,3 +1,4 @@
|
||||
- Stop reporting a live HLS camera as degraded when a viewer is refused because
|
||||
every lease or session slot is taken; the refusal still answers 503 with
|
||||
`Retry-After` (Said Turksever, German Khokhlov, #1267).
|
||||
every viewer or session slot is taken: the refusal answers 503 with
|
||||
`Retry-After`, and the frame shown in its place leaves the camera's health
|
||||
as it was (asturksever, gekh, #1267).
|
||||
Reference in new issue
Block a user