Skip to content

A cache-resident deep live seek still replaces the origin stream.ts socket — and the source dies ~2.8 min later on Jellyfin 10.11 (2/2) #443

Closed

Description

@cmcpherson274

What happened?

A deep backward live seek's producer restart replaces the origin stream.ts socket even when the seek is served entirely from the local segment cache — and on Jellyfin 10.11 the live source then dies permanently ~2.8 minutes later, 2 out of 2 long runs.

The attribution split, stated up front the way our #240 was: the DEATH mechanism is very
likely server-side (a shared-live-stream teardown reacting to the original reader
dropping is our best hypothesis; we are instrumenting the server next). What we believe
is yours is the SUBSTRATE: a far seek on live restarts the producer with a fresh origin
GET even when the target is fully cache-resident, on a source class where the origin
socket is irreplaceable — a live raw-TS endpoint serves no past (Accept-Ranges: none;
a fresh GET joins near the edge), so the original socket is the session's one link to
the broadcast.

Measured (Jellyfin 10.11 /Videos/<id>/stream.ts, h264 1080p59.94 + AAC,
dvrWindowSeconds: 1800, .fastZap, keepalive reports posted at the host cadence —
run 2 — so the server's idle reaper is excluded):

  • Rewinds within the local buffer (−20 s): no producer restart, no consequences.
  • Deeper rewinds (−45…−540 s): producer restarts (fresh GET), seek lands EXACTLY
    (51–80 ms) and plays stably behind live — the cache serves the past correctly.
  • Both 29-minute runs: a −540 s seek at t≈580 s → stable behind-live playback → the
    live edge FROZE permanently at +161 s (run 1) / +176 s (run 2) after the restart.
    No error surfaced; playbackPhase parked in rebuffering once the buffered tail ran
    out; no recovery over 12+ observed minutes.
  • A third run whose deepest restart was −180 s ended 168 s after that restart —
    still alive at exit, i.e. just inside the same fuse; consistent, not exculpatory.
  • Control: sessions with no deep seek ran 33 minutes clean under identical conditions
    (device soak, same server).

Ask: when a live seek target is fully resident in the segment cache, serve it WITHOUT
replacing the origin socket — the forward/live fetch position never needs to move for a
backward jump into local data. That both sidesteps whatever the server is doing and
removes a class of origin round-trips from a latency-critical path. (The AE#408 cluster
reworked where a restart opens; this report is about whether one happens at all on
cache-resident live targets.)

Steps to reproduce

  1. Live raw-TS source on Jellyfin 10.11 (/stream.ts), isLive: true, dvrWindowSeconds: 1800, native/loopback route. Post standard playback keepalives so
    the server's idle reaper is out of the picture.
  2. Play at the edge ~10 minutes, then seek(to: currentTime − 540).
  3. The seek lands and plays behind live; watch liveEdgeTime: within ~3 minutes of the
    restart it freezes permanently (the source is dead; nothing recovers it).
  4. Repeat without the deep seek: the session runs 30+ minutes clean.

AetherEngine version or commit SHA

6.21.0 (87868c1); the far-seek restart design is unchanged at 6.50.1 (cb3baaf) per the
AE#408-era code (restart aim reworked, restart-on-far-seek retained).

Host app

Custom / my own integration

Platform

macOS

OS version

macOS 26.5.2

Device / chip

Mac Studio, Apple M4 Max (aetherctl harness driving the real server; keepalives added to
the harness for run 2)

Playback path

Native AVPlayer

Source media (for playback bugs)

Live TV channel via Jellyfin 10.11 raw MPEG-TS (/stream.ts): h264 1920×1080 59.94fps
progressive + AAC-LC, ~1.7 MB/s mux rate.

Error codes / log lines

None at the death — the edge silently stops advancing and the session starves. Full
per-second telemetry of all runs (edge/behind/range/rx per tick, seek landings)
available on request. Server-side log correlation is queued on our side; we will attach
findings to this issue when we have them.

Anything else

Companion reports: #441 (seekableLiveRange floor honesty) and #442 (reload rejoin at position) — the three together are what a live rewind UI on this
engine needs. Our #240 (VOD far-seek restarts) is the same design seam on the other
axis.

Activity

  1. cmcpherson274 commented on Aug 28, 2026

    @cmcpherson274
    Author

    Server-side correlation done, as promised. The fuse is real and now has a face — and the attribution shifts further toward "ours/the stack's", with the engine-side ask unchanged.

    What the server logs show (timestamps to the second, both runs consistent; run 1 quoted):

    • Our LiveStreams/Open lands at 18:38:35 local; the IPTV restreamer behind Jellyfin (dispatcharr) logs a new client connection at 18:38:35.5 — that connection is Jellyfin's tuner-side feed for the shared live stream.
    • The engine's far seek swaps its HTTP reader at 18:48:44 (old stream.ts request abandoned, fresh one opened same second — Jellyfin serves both from its session backlog; no second tuner connection appears).
    • At 18:51:32.0 — 168 s later, and the exact second our live edge froze — the restreamer logs Broken pipe … during GET /proxy/ts/stream/<channel> on that tuner connection and removes the client (Disconnected after 777.39s — connected 18:38:35, to the half-second our Open).
    • One second later: Non-owner cleanup: Removed stream buffer for channel … / Removed client manager — while the channel still reported one remaining client.
    • Jellyfin logs nothing at INFO through the entire death — no close, no error, no session event.

    Our reading of the fuse: the abandoned original response's writer (Jellyfin→client) keeps pushing into a dead socket until TCP backpressure finally errors it (~2.8 min at this mux rate); Jellyfin's error path then tears down the shared stream's tuner-side connection even though the fresh reader is still consuming the backlog — the restreamer sees its client vanish and removes the channel buffer, and the surviving reader starves. So the death itself is a Jellyfin/restreamer interaction, not yours — we'll pursue that half separately.

    Why the ask here stands regardless: the fuse is lit by the reader swap. A cache-resident backward seek that kept the origin socket (the forward fetch position never needs to move) would never abandon the response, never start the fuse, and would remove an origin round-trip from the zap-critical path even on well-behaved servers. Happy to test a branch against this exact stack.

  2. superuser404notfound commented on Aug 28, 2026

    @superuser404notfound
    Owner

    Measured this on current main before touching anything, and the substrate half looks already answered:
    a fully cache-resident deep backward live seek does not restart the producer and does not open a second
    origin connection.
    Two independent confirmations.

    In code. The proactive backward-jump producer restart is not installed for live sessions at all:
    HLSVideoEngine passes restartHandler: isLiveSession ? nil : { ... }, and it has done so since 2.5.0
    (d6fcf5c5, 2026-06-07), so it predates the 6.21.0 the report was measured on. Separately, AE#408 added a
    residency gate to that same path in 6.39.0 (424ffeeb, 2026-08-24), which keeps the producer anchored
    whenever the resident run from the target reaches the active march front. The read that AE#408 only
    "reworked the restart aim" is the part I would revisit: it also added the case where no restart happens.

    On the harness. Raw MPEG-TS over loopback, isLive, dvrWindowSeconds: 1800, .fastZap, 130 s run,
    one deep backward seek 88 s back into resident content:

    [HLSLocalServer] GET .../seg93.mp4          last request before the seek
    seek#1 programmatic began target=942.59
    seek#1 programmatic landed rendered=942.59  100 ms
    [HLSLocalServer] GET .../seg0.mp4           93 segments back, served from cache
    ...
    $ grep -c "pump conn start" run.log
    1
    

    One origin connection for the whole session, across a 93-segment backward jump. No producer restart, no
    second GET.

    The caveats, stated rather than buried: this is a loopback fixture and not Jellyfin, and it is a
    1 s-GOP synthetic source. It shows the mechanism, not your server.

    So the fresh GET measured at 6.21.0 came from something other than "a far seek restarts the producer", and
    finding out which is the useful next step, especially since the death mechanism is server-side on your own
    reading. The likely candidate is the live reopen ladder firing shortly after the seek (keyframe starvation
    or a read error on a disturbed producer), which is a different mechanism with its own log line:

    A re-run on 6.51.0 with the deep seek, plus which of those three lines shows up in the ~2.8 minutes before
    the edge freezes, would settle whether there is still an engine-side trigger here or whether the whole
    fuse is the server reacting to something else. If it is the reopen ladder, that is worth its own issue and
    I would want the surrounding lines.

  3. superuser404notfound commented on Aug 28, 2026

    @superuser404notfound
    Owner

    For the re-measurement the current release is 6.52.0, which also carries an honest seekableLiveRange (#441), so a deep rewind can be aimed at a floor that exists rather than at window arithmetic. The three log markers in the comment above are unchanged.

  4. cmcpherson274 commented on Aug 28, 2026

    @cmcpherson274
    Author

    Re-checked our 6.21.0 logs against your three lines, and the honest answer starts with a withdrawal.

    The "fresh GET at the far seek" claim is withdrawn. grep -c "pump conn start" over each of the three campaign legs: 1 — one origin connection per session, including across every deep rewind. The counter is trustworthy: a separate device run on the same engine family that hit a genuine 503 respawn storm logs pump conn start gen=1 … gen=15, one line per connection, so a second GET would have printed. Your in-code reading (live restartHandler: nil since 2.5.0) matches our own logs at 6.21.0.

    What we had misread: the CLI telemetry's rx= counter RESETS at the internal producer restart, and "the reader swap at 18:48:44" in my earlier comment was that reset (session start 18:38:35 + 608 s ≈ 18:48:43) — a per-restart counter artifact, not a socket event. Nothing HTTP-level ever corroborated a second request; Jellyfin logs nothing per-request at INFO, so the counter was the only witness, and it was lying.

    Which of your three lines shows up in the ~2.8 min before death: none of them. The window carries, in order: the edge freeze (source stops delivering), the local playlist stalling (503 /media.m3u8 reason=blocking reload msn=180 unsatisfiable, repeating), then #93 item death (failedToPlayToEndTime) … stage-2 recovery → #65 nudge did not revive the consumer; reloading item at the live edge (rejoin) (same URL, same host) — details now on #442, since that pair is also the mechanism that discarded the rewound position. declareTarget backward jump: 0 hits, as you predicted. live reopen attempt: 0. reload: stopInternal start: 0.

    What stands, and what's now unattributed. The server-side sequence is unchanged and remains 2/2: dispatcharr drops the tuner-side connection with a broken pipe at deep-seek+168 s (run 1) / +176 s (run 2), to the second, and the surviving stream starves. But with the socket swap withdrawn, the client-side trigger is unknown — the deep rewind still correlates with the death, and the only client-side event at that instant is the internal producer restart (consumption pattern, not connection). It may equally be a server-side coincidence with its own clock; two runs can't separate those. The Jellyfin-silently-tears-down-a-still-consumed-shared-stream half is ours to chase with the server folks either way.

    Next from our side: the re-run you asked for lands with our pin-bump pass to 6.52.0 (same channel, same stack, deep seek, then watch which line — if any — precedes a death). If the fuse doesn't reproduce there, AE#408's residency gate plus whatever the restart no longer disturbs would close this from our end.

  5. superuser404notfound commented on Aug 28, 2026

    @superuser404notfound
    Owner

    Thank you for the withdrawal and for the counter-check that produced it. A retracted claim that arrives with the grep behind it is worth more than the original report was.

    The counter that misled you is ours, and it is fixed in 6.53.0.

    What rx= actually is. On the native path it is AVPlayerItemAccessLogEvent.numberOfBytesTransferred, read off accessLog().events.last. That counter is a total PER ENTRY, and AVFoundation opens a new entry whenever the playback session changes under it. The field therefore falls back to a fresh entry's partial count in the middle of a healthy session, and nothing about a producer restart, a reader swap or a socket is implied by the fall.

    Measured on the live loopback harness, one rewind into the DVR window and one return to the edge, one pump conn start for the whole run and no producer restart in it:

    before:  rx=1.7MB -> 3.4MB -> 2.2MB -> 0.6MB      drop=0 -> 44 -> 0
    after:   rx=1.7MB -> 5.0MB -> 7.3MB -> 8.4MB      drop=0 -> 44 -> 88 -> 112
    

    Two falls inside 45 s of healthy playback. Summed across entries both are monotonic over the same run.

    The consequence for your timeline is larger than the withdrawal itself. Your far seek is timestamped 18:48:44 because that is where the reset was, and the reset is not a seek witness: it is an access-log entry boundary, which a seek can open and so can a stall, a variant switch or a rate evaluation. "Deep seek + 168 s" may therefore be anchored on the wrong instant, and the 2/2 correlation is only as good as that anchor. The engine does date the seek itself, [AetherEngine] seek#N <kind> began target=... and the matching ... landed rendered=.... If those lines are in the 6.21.0 captures they place the seek independently, and the correlation either survives that or moves.

    restarts= could not have corroborated an internal producer restart either. Same defect, one layer down, also fixed in 6.53.0. A producer restarts at most once, because it is built for one aim and replaced for the next, so the field was a 0/1 flag on the current instance rather than a session count. On a live session it reads 0 by construction: the live recoveries REPLACE the producer instead of restarting one, and performRestart bails on the empty live segment plan. So there was no counter that could have shown you the event you attributed the fall to, because on live there is no such event to show.

    The live recoveries speak in the log instead. Three lines, all of them per occurrence:

    • [HLSVideoEngine] live pump exited (reason=...); starting reopen
    • [HLSVideoEngine] live reopen attempt N/M
    • [HLSVideoEngine] live producer rebuilt in place: continuing at seg...

    Your zero hits on live reopen attempt stand, and the first and third are worth adding to the grep.

    demuxerBytesFetched and muxedBytesLifetime had the same scope error: read off the live demuxer and the live producer, which a reopen rebuilds. Every replacement now folds the outgoing instance's totals into the session's.

    What the CLI could not answer at all until now. rx and origin are two different links, and on the native path they cannot be the same one: rx is what AVPlayer pulled from the engine's own loopback server, so a live session whose source has gone quiet keeps raising it out of the segment cache. play prints origin= beside rx= now, and live prints origin= and restarts= per tick. For your re-run that pair is the observable: origin flat while rx climbs is the source dying with the consumer still fed, which is the shape your server logs describe.

    On the 503. 503 /media.m3u8 reason=blocking reload msn=N unsatisfiable, repeating, is the local server stating that no new segment has been produced for the media sequence AVPlayer is asking for. It shows up in the harness runs at exactly the point the fixture stops delivering, so it corroborates your reading rather than competing with it: at that moment the source was already gone, and the #93 item death and the #65 rejoin that follow (details on #442) are consumer-side aftermath.

    Leaving this open for the re-run. 6.53.0 is the release to take it on: the same run then gives a monotonic rx, an origin number for the link the question is actually about, and a restarts field that means what it says.

  6. cmcpherson274 commented on Aug 28, 2026

    @cmcpherson274
    Author

    Re-run done on 6.53.0, same channel, same stack — and first, your re-anchor challenge was right, so here is the corrected old timeline before the new one.

    Re-anchored 6.21.0 runs (engine-dated seeks, not the rx reset). The seek#1 … began/landed pairs are in both captures: seek#1 at t≈580 in each (the CLI's schedule; the 18:48:44 "swap" was indeed the counter reset, ~28 s after the real seek). Against those anchors: run 1 — edge froze at seek+157 s, dispatcharr broken-pipe at seek+197 s; run 2 — freeze at seek+167 s, pipe at seek+206 s. One ordering correction to my earlier server-side comment: the edge freeze PRECEDES the dispatcharr teardown by ~39 s in both runs — "the exact second our live edge froze" conflated the two instants.

    The 6.53.0 re-run: the fuse lit again (3/3), and your new gauges make the sequence legible.

    • Deep seek at t=580 (seek(to: 0) → clamped to the honest floor 1.45, landed 55 ms, ≈577 s behind).
    • origin= runs at a dead-flat 109.1–109.6 MB/min (the mux rate) STRAIGHT THROUGH the seek — no bump, no restart, one socket for the session. The withdrawal stands, now with the origin-side gauge confirming it.
    • Segment production freezes at t≈703 (seek+123 s): edge pins at 704.92, the local playlist starts 503 … msn=180 unsatisfiable, and your new stage-2 diagnostic says it outright: #65 stage-2 skipped: no segment finalized since the stall (producer still at seg180); the producer is starved, not the consumer.
    • The origin byte-flow itself stops at t≈738 (seek+158 s) — origin= flattens at 1347.0 MB and never moves again.
    • dispatcharr's tuner-side broken pipe lands at t≈756 (seek+176 s) (Disconnected after 756.13s, buffer + client manager removed a second later — server log matched to the second via the client id's connect epoch).
    • Consumer-side aftermath, same as before: #93 item death → stage-2 → #65 nudge did not revive → reloading at the live edge (rejoin) at t≈741, re-firing every ~39 s — and discarding the −577 s rewound position each time (the A live reload with a DVR window should be able to rejoin the pre-reload playhead instead of the edge #442 mechanism, unchanged at 6.53.0).

    Which of your three lines precedes the death: none, still. live pump exited = 0, live reopen attempt = 0, live producer rebuilt in place = 0, declareTarget backward jump = 0. The first abnormal line in the whole window is the local server's 503.

    The ordering nuance that moves the attribution again, slightly: our own receive stopped ~18 s BEFORE dispatcharr's pipe error — so the server-side teardown is a consequence somewhere downstream of the initial starvation, not its trigger. And segment production stopped ~35 s before the byte-flow did: for that half-minute the engine was RECEIVING mux-rate bytes and finalizing nothing from them. If there is an engine-side question left in this issue, it is that 35 s window (bytes in, no segments out, before the socket ever went quiet) — happy to capture whatever would make it legible. The Jellyfin/dispatcharr half (why the origin goes quiet ~2.5 min after a deep rewind on a shared stream, 3/3 now) stays ours to chase with the server folks.

    One small diagnostics regression report while I'm here: across the #93 stage-2 item-reload churn, the tick's rx= first disappears from the line and then reappears RESET (1229.1 MB at t=720 → absent → 34.3 MB at t=840). Looks like the same per-instance-scope class you fixed twice, one layer further out (the AVPlayerItem replacement in stage-2). origin= behaves perfectly through the same window.

  7. superuser404notfound commented on Aug 28, 2026

    @superuser404notfound
    Owner

    Your 35 s window is ours, and it is the whole thing. The freeze, the origin going quiet, and
    by extension the broken pipe: all three are one engine-side defect, and it needs no server, no
    Jellyfin and no seek to reproduce.

    Reproduced on the loopback fixture, an EDGE session with no seek at all, 1 s cadence,
    dvrWindowSeconds: 1800, 250 s:

    [+179.28s] [HLSSegmentProducer] live headroom PARK head=180 resident=180 cap=180 parked=0s
               edge pinned at 178.49 from that second on, never released
               503 /media.m3u8 reason=blocking reload msn=180 unsatisfiable
    [+194.36s] #65 stage-2 skipped: no segment finalized since the stall (producer still at seg180);
               the producer is starved, not the consumer
    [+215.46s] #93 item death (failedToPlayToEndTime) -> #65 nudge did not revive the consumer;
               reloading item at the live edge (rejoin)
               re-firing every ~36 s, 16 x -12888 "Playlist File unchanged"
    

    That is your sequence line for line, and every line of it is downstream of the first one.

    The defect is a unit mismatch between two bounds that never met. The live window is sized in
    SECONDS from what the host asks for; the producer refuses to hold more than a fixed COUNT of
    segments (180). The playlist does not start sliding until windowSegmentCount segments exist, so
    for any window deeper than 180 segments the cache fills to the cap BEFORE the window has slid
    once, and the pump parks against it for the rest of the session. The comment on that cap claimed
    it could only be approached by a consumer that had stopped polling. True for a 60 s live-only
    window, false for every DVR one.

    It predicts the freeze instant: 180 x EXTINF. Your 6.53.0 run cuts 3.9 s segments and froze at
    t=703. 180 x 3.9 = 702. Your two 6.21.0 runs froze at 737 and 747, i.e. a 4.1 s cadence. The deep
    seek is not in the mechanism anywhere, a third time; what all three campaigns share is a session
    that ran past 180 segments.

    And the park is what stopped your origin. A parked pump is not reading, so nothing drains the
    socket. Measured across the park on the same run, our reader's own runway gauge: pumpAheadMB
    0 -> 8 -> 16 while the reader kept pulling at mux rate into a buffer the demuxer no longer
    consumed. When that runway fills the reader stops, the socket backs up, and a single-connection
    live source dies behind it. At your 1.8 MB/s that runway takes about 35 s to fill, which is your
    window between "segment production froze" and "origin flattened at 1347.0 MB", and the dispatcharr
    broken pipe 18 s after that. So your ordering nuance was right and points further than you drew
    it: the teardown is downstream of our own backpressure, not of anything the server decided.

    Both diagnostics that sent you to your server logs were ours. #65 ... the producer is starved, not the consumer and #446 source stopped delivering are the two lines a parked pump produces,
    and neither could tell a held pump from a starved one. The first now says PARKED when it is.

    The fix is on main as c3ee9d52 and rides the next release. The window is sized by what the session can actually hold: the retention budget over
    the observed segment size, under a playlist ceiling (the whole visible window is rebuilt and
    re-served on every poll). The window then slides at its own depth instead of the producer parking
    against a smaller number, seekableLiveRange (which reads the cache since #441) advertises the
    depth that exists, and the resident cap becomes a backstop ABOVE the window instead of a bound
    below it.

    Same fixture, same 250 s run:

    parks item deaths -12888 edge at t=228
    before 8 5 16 frozen at 178.49
    after 0 0 0 advancing, 211 resident

    and at a 240 s window the resident count now pins at exactly 240 with the window sliding, where
    before it parked at 180.

    For your session: an 1800 s ask at 3.9 s / 7 MiB segments resolves to 292 segments (~19 min), with
    a line saying so, instead of 30 minutes that ends the stream at 12.

    One thing in your data the mechanism does not explain, and it is worth a check on your side:
    your control ran 33 minutes clean without a deep seek. On this reading any 1800 s-window session
    freezes at 180 x EXTINF whether or not anything seeks. If that control carried a different
    dvrWindowSeconds (a live-only session sizes its window at 60 s and never comes near the cap),
    that closes it; if it really was 1800 s at the same cadence, there is something else in the shape
    worth having.

    Separately, your rx= regression report is confirmed and fixed (80ca2a5b). Same scope error one layer
    further out, exactly as you called it: an AVPlayerItem's access log holds only its own entries,
    so the stage-2 item replacement replaced the counter with it. The host now folds a departing
    item's totals into the session's, at the swap rather than at the unload (the in-place handover
    keeps the old item playing until replaceCurrentItem, so folding earlier would count it twice).
    The gap between the two items reported nothing at all, which is why the field vanished from the
    line rather than holding still; it reports the total so far there now.

  8. cmcpherson274 commented on Aug 28, 2026

    @cmcpherson274
    Author

    The control check closes it, your way: the 33-minute control ran a 60 s window. It was an APP tune, and the app deliberately never sets dvrWindowSeconds (our Live Rewind rides an app-owned spool through a custom reader; rewinds are fresh loads, never engine seeks — the window is host-side by design). With the option nil the engine resolves effectiveWindowSeconds = dvrWindowSeconds ?? liveOnlyFloorSeconds = 60 (VideoSegmentProvider.swift:41), so the control sat at ~15 resident segments for its whole life — never within a mile of the 180 cap. Every campaign that froze was the CLI with --dvr-window 1800. Nothing else in the shape to find.

    Which also means the 180×EXTINF prediction is clean across everything we have: 703 measured vs 702 predicted on the 6.53.0 run is the kind of agreement that ends arguments. And the backpressure half quietly closes a server-side investigation we had open — we'd been preparing to chase "why does Jellyfin/dispatcharr tear down a still-consumed shared stream" with the server folks, and the answer is that nothing upstream decided anything: our parked pump stopped draining a single-connection source and the teardown cascaded from the socket backing up. Chase cancelled.

    For the record on our side: the shipped app shape structurally can't cross the cap (window-60 on the plain arm; window host-owned on the spool arm), so this defect never had product exposure here — it gated our measurement rigs. We'll take c3ee9d52 with the next tag and re-run the deep-seek recipe expecting the honest ~292-segment window line and no fuse; the rx= fold fix (80ca2a5b) gets read in the same pass. With that, from our end #443 is root-caused, predicted, and fixed-pending-release — thank you for following the 35 s all the way down.

  9. superuser404notfound commented on Aug 28, 2026

    @superuser404notfound
    Owner

    That closes it, and the line reference is right: with the option nil the sizing takes liveOnlyFloorSeconds, so an app tune sits at a 60 s window however long it runs. The expression moved with the fix, it is LiveWindowSizing.requestedSegmentCount now with the same dvrWindowSeconds ?? liveOnlyFloorSeconds one level down, so a later grep is better aimed at the name than the line. At a 4 s cadence that is 15 segments, which is the ~15 you measured and 165 short of the cap.

    The fix cannot change the arm the product ships. Both new bounds can only ever shrink a window BELOW what was asked: the served count is max(minSafeSegments, min(asked, affordable, 900)), where affordable is the session retention budget (min(2 GiB, a quarter of free space)) over the observed segment size, and 900 is the playlist ceiling. At an ask of 15 neither binds, so the plain arm resolves to the same number before and after, and the spool arm resolves to it too for the same reason. Nothing to regression-test on the product shape; only the rigs move.

    What the re-run should show. One line, once per session, and only when the window was actually clamped:

    [HLSVideoEngine] #443 live window served at N segments (~Ms) of the K asked for (~Ls): <the bound that bound> ...
    

    For --dvr-window 1800 at 3.9 s and ~7 MiB per segment: 462 asked, 292 affordable, so 292 served (~19 min), with the retention bound named. If the playlist ceiling shows up there instead, the segments got cheap enough that 900 entries bound first. Absence of the line on a 60 s tune is the correct output, not a missing fix.

    Then the zeros: no live headroom PARK, no 503 ... msn=180 unsatisfiable, no -12888 ladder, and the edge advancing past 180 x EXTINF, which is the instant the old build could not pass. If anything does park anyway, the stall ladder now says PARKED by this engine (live headroom cap) instead of blaming the source, which is the sentence that sent you to the server logs twice.

    One note on the backpressure half, since the server-side chase is cancelled. The gauge that made it legible is readerWindowAheadBytes in the live telemetry snapshot, and it is nil for a host-supplied reader: it reads an AVIOReader's sliding window, and on the spool arm the reader is yours. So on the shape the product actually ships, engine-side backpressure would show up as your own spool not draining rather than in that field. Worth knowing before the next "the origin went quiet", because that field is the one you would reach for first and its nil is not a healthy zero.

    c3ee9d52 and the rx= fold 80ca2a5b are on main and ride the next tag. I will name it here once it is cut.

  10. superuser404notfound commented on Aug 28, 2026

    @superuser404notfound
    Owner

    The tag is 6.55.0, carrying c3ee9d52 (window sizing) and 80ca2a5b (the rx= fold across an item swap).

    For the deep-seek re-run, the observables are the ones from the comment above: the #443 live window served at N segments ... of the K asked for line naming the retention bound, and then the zeros where the fuse used to be, no live headroom PARK, no 503 ... msn=180 unsatisfiable, and the edge still advancing past 180 x EXTINF. If origin= goes quiet on the re-run anyway, that would be a source-side event with nothing on this side holding the socket, which is the reading the old build could never give you.

  11. cmcpherson274 commented on Aug 28, 2026

    @cmcpherson274
    Author

    Deep-seek re-run done on 6.55.0, same recipe as every campaign (Jellyfin stream.ts, --dvr-window 1800, one deep seek at t=580, 900 s) — the fuse is dead: 0/1 on the fix, after 4/4 across three pins (6.21.0 ×2, 6.53.0, 6.54.0).

    • The sizing line fired at session start, naming the bound exactly as you predicted: #443 live window served at 297 segments (~1201s) of the 446 asked for (~1803s): 2048 MiB of retention holds 297 segments of 7053 KiB.
    • The fuse markers, whole-run: live headroom PARK 0 · -12888 0 · #93 item death 0. One 503 … msn=222 unsatisfiable appears — POST-teardown, after the 900 s cap, a lone blocking-reload transient (the 6.54.0 run also logged exactly one on this marker, so it doesn't discriminate; the other three do, against 105+ PARKs / 5× -12888 / 5 deaths on the old pins).
    • The instant no prior build could pass, passed: at t=809 — beyond every measured freeze instant (703 / 732 / 737 / 747) and beyond 180×EXTINF — the deep-rewound session is state=playing ~578 s behind, the edge at 814.22 and still advancing, and the origin counter still moving at mux rate (1478 MB and counting; final tick t=900 still playing, edge 905.32). No quiet origin, no server-side teardown — with the pump draining, the backpressure chain never starts, which is the reading the old build could never give us. VERDICT: OK, Close 204.

    From our side #443 is closed: root-caused by you, predicted to the second, fixed, and now verified on the reporting stack. Thank you for following the 35 seconds all the way down.


    Edited same hour after our review pass: the first posting claimed a whole-run zero on the unsatisfiable marker via a grep pattern that couldn't match the log's own format (there is one, post-teardown, non-discriminating — details above), said "two pins" where the four historical fuses span three, and listed 703/737/747 as "all three" freeze instants when 6.54.0's 732 belongs in the set. Conclusions unchanged.

  12. superuser404notfound commented on Aug 28, 2026

    @superuser404notfound
    Owner

    That is the run, and every number in it checks against the code that printed it.

    The sizing line is the fix reporting its own arithmetic. 2048 MiB over 7053 KiB is 297 segments (2045.6 MiB resident, the 298th does not fit), and 297 at the 4.043 s cadence your own numbers imply (1803 s over 446 asked) is the 1201 s served. The retention bound named itself rather than the playlist ceiling, which is correct at that segment size: 900 entries would have been 6.05 GiB.

    The loopback prediction was 292 segments; the server run landed on 297. The entire delta is the segment size, 7053 KiB against the fixture's 7168, 1.6% smaller and so five segments cheaper. Same bound, same shape.

    On the lone 503 ... msn=222, the index dates it. At 4.043 s a 900 s run has produced about 222 segments, so a blocking reload asking for msn=222 is asking for the segment the teardown prevented from existing. That marker fires when the source stops delivering, and after the cap the source stopping is the harness stopping it. It was never a discriminator for this defect, only ever a symptom of whatever had halted production, which is why the 6.54.0 run logged one in the same position. The three markers that do discriminate are the three that went to zero.

    The instant is the part worth keeping. 180 x EXTINF at that cadence is 728 s, and t=809 has the session playing 578 s behind with the edge advancing and origin= still counting at mux rate. That is the fuse burning past its own length. With the pump draining there is no backpressure to cascade, so there is nothing left for the server to react to, which is why the chase you cancelled was the right call.

    Thank you for four campaigns on this, for the ordering nuance in the third that pointed at the 35 s gap, and for the correction pass on the last comment. Marking this done here; 6.55.0 carries both c3ee9d52 and 80ca2a5b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions