Skip to content

HLS VOD needs an explicit persistent HTTP/1.1 transport policy with cross-segment connection reuse #732

Closed

Description

@qoli

What happened?

AetherEngine 7.33.2 cannot reliably play a finite HLS VOD from an origin whose media endpoint behaves correctly over a persistent HTTP/1.1 connection but inconsistently over HTTP/2 or multiple newly-created connections.

This is not a request to prefer HTTP/1.1 globally. It is a request for a source-scoped transport policy for media origins with demonstrated HTTP/2 interoperability or connection-affinity constraints.

Changing the Foundation receive primitive did not solve the problem:

  • URLSession.dataTask negotiated h2.
  • URLSession.data(for:) also negotiated h2.
  • Replacing each segment fetch with a raw HTTP/1.1 request proved the protocol difference, but opening a new connection per segment still caused refusals.
  • Reusing one HTTP/1.1 keep-alive connection across consecutive segments was the stable path.

Why HTTP/1.1 is the correct player policy here

HTTP/1.1 is older—its widely deployed specification dates to 1999, while HTTP/2 was standardized in 2015—but protocol age is not the player's correctness criterion:

HLS does not require HTTP/2. RFC 8216 describes segments as URI-addressed resources carried over HTTP, or another protocol capable of reliably transferring the resource. It defines no minimum HTTP version:

https://www.rfc-editor.org/rfc/rfc8216.html#section-3

Persistent reuse is part of HTTP/1.1 itself: multiple requests and responses can use one connection by default:

https://www.rfc-editor.org/rfc/rfc9112.html#section-9.3

This is also established player behavior rather than an application-specific workaround. FFmpeg's HLS demuxer explicitly models http_persistent and calls open_url_keepalive to reuse an existing connection for later HLS requests:

https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/hls.c#L3337-L3479

For a player, "safe" here means predictable media delivery, sustained throughput, and buffer continuity. It does not mean that HTTP/1.1 is cryptographically stronger. HTTPS certificate and hostname validation remain required.

Reproduction evidence

The signed source URL and credential-bearing headers are private and intentionally omitted. All protocol comparisons below used the same segment, headers, and edge IP.

Client / transport Result
curl forced HTTP/2, run 1 HTTP 403 after 1.69 s
curl forced HTTP/1.1, run 1 HTTP 200, 4,103,664 bytes in 14.44 s
curl forced HTTP/1.1, run 2 HTTP 200, 4,103,664 bytes in 15.19 s
curl forced HTTP/2, run 2 HTTP 403 after 1.11 s
Foundation data(for:), negotiated h2 One HTTP 200 run, followed by an HTTP 403 run

A physical Apple TV run using AetherEngine's raw HTTP/1.1 transport confirmed:

api=held_http1
protocol=http/1.1
status=200
receivedBytes=4103664
elapsed=1.149s
bytesPerSecond=3571148

However, the current experiment creates a new HeldSourceConnection for every segment. The next batch opened several independent HTTP/1.1 connections and received HTTP 403.

A separate controlled comparison established the missing invariant:

one HTTP/1.1 keep-alive connection, four consecutive segments:
200 / 200 / 200 / 200
approximately 2.7–8.3 MB/s

four newly-created HTTP/1.1 connections:
at least one request immediately returned 403

Therefore, forcing the HTTP version per request is insufficient. The connection lifetime must belong to the HLS playlist/ingest session and span segment boundaries.

Expected behavior

AetherEngine should provide a source-scoped HLS transport policy that can:

  • use HTTPS while pinning the wire protocol to HTTP/1.1;
  • retain normal TLS certificate and hostname validation;
  • reuse the same persistent connection across consecutive same-origin segment requests;
  • preserve the exact segment URL, query, headers, redirects, and response framing;
  • make the selected protocol and connection reuse observable;
  • retain bounded response-body handling, cancellation, and typed transport errors;
  • obey an explicit server close or origin change;
  • avoid silently falling back to h2 when HTTP/1.1 was explicitly selected;
  • leave the default transport behavior of ordinary HLS sources unchanged.

This policy should not be implemented as a QueryWrapped-specific downloader. QueryWrapped admission is a separate concern.

AetherEngine version or commit SHA

7.33.2 / e7afcfad3973426a6ffff31fc111f6b1e5078061

Host app

Custom integration using SyncnextHybrid's diagnostic smoke player.

Platform

tvOS, physical Apple TV 4K.

Playback path

Native/loopback path through the AE#268 seekable HLS VOD ingest.

Related issues

Activity

  1. qoli commented on Oct 10, 2026

    @qoli
    ContributorAuthor

    Companion issue #733 tracks QueryWrapped admission only. This issue is intentionally limited to the HLS transport policy and cross-segment persistent HTTP/1.1 connection reuse.

  2. superuser404notfound commented on Oct 12, 2026

    @superuser404notfound
    Owner

    Released in 7.35.0: the persistent HTTP/1.1 transport for the HLS VOD ingest under heldSourceConnection (37370623, merged in 60f5cc9e). Every connection open and close is logged with its protocol and request count, so a log from the affected origin shows directly whether the session stayed on one connection.

  3. qoli commented on Oct 16, 2026

    @qoli
    ContributorAuthor

    Verified the explicit persistent HTTP/1.1 policy on the original ONE source on 2026-10-16, using a physical Apple TV 4K (AppleTV6,2), tvOS 26.6, and HybridSmokePlayer in direct aetherEngine mode.

    Setup

    • AetherEngine 7.36.0, c6365cc3c8850bdb670654ca26dcd21f73670875, with FFmpegBuild 3.7.1.
    • Downstream patch 0005 was absent. Existing patches 0002/0004 were retained to compile the hybrid smoke host; this was not a completely pristine tree. PersistentHTTP1Transport, HLSVODIngestReader, AVIOReader, and the relevant fetch/probe files were byte-identical to official 7.36.0.
    • The smoke host explicitly set LoadOptions.heldSourceConnection = true before loading the current ONE plugin's URL and headers. No transport implementation or timeout was changed. The original outer query-wrapped segment URLs were preserved.

    The upstream log confirms the selected protocol and repeated requests on each connection (origin redacted):

    [HLSVODIngest] AE#732 connection vod#1 open <origin> protocol=http/1.1
    [HLSVODIngest] AE#732 connection vod#1 <origin> closed after 3 requests reason=cancelled
    [HLSVODIngest] AE#732 connection vod#2 open <origin> protocol=http/1.1
    [HLSVODIngest] AE#732 connection vod#2 <origin> closed after 2 requests reason=cancelled
    [HLSVODIngest] AE#732 connection vod#3 open <origin> protocol=http/1.1
    

    Reposition/cancellation replaced connections; they were not opened afresh for every segment. After the last reopen, no further connection opened while the buffered media position reached 130 s and visible playback continued to 148 s across multiple approximately 10 s source segments. Together with the unchanged sequential ingest, this verifies cross-segment reuse for this run. The final connection stayed active, so its final request count was not emitted or inferred. No h2 transport appeared in this run's console.

    Physical-device result: PASS

    Run e98ee3c9-7a49-46c3-b799-a5a2fb8e55ea:

    Check Result
    Backend / video / duration native / 3840x2160 / 1203.284 s
    Startup progress 2.000 s
    Seek target / landing / error 10.000 / 9.880 / 0.120 s
    Strict post-seek progress 2.020 s
    Progress after seek at terminal PASS 12.020 s
    Native video Different actual scenes at 135 s and 148 s, still playing

    The default-policy #733 run was kept separate: heldSourceConnection defaults to false, so an h2 result without enabling it does not test #732. This explicit-policy run confirms HTTP/1.1, connection reuse, startup, seeking and continued playback on the affected source.

    Closing as completed for the reported reproduction. This is a bounded real-source smoke acceptance, not exhaustive qualification of redirect/origin-change/TLS/stale-connection edge cases. Signed URLs and header values remain private.

  4. superuser404notfound commented on Oct 16, 2026

    @superuser404notfound
    Owner

    Thanks for the careful verification on the original source, and for keeping the default-policy #733 run separate. The connection log reads exactly as intended: one HTTP/1.1 connection carried across segments, replaced only on reposition. Agreed on the scope, redirect, origin-change and stale-connection behavior were not part of this run; if one of those shows up on a real source, a fresh issue with the AE#732 connection lines is the fastest way in.

  5. qoli commented on Oct 16, 2026

    @qoli
    ContributorAuthor

    Reopening: HTTP/1.1 is selected, but sustained playback exposes a serious segment-delivery implementation issue

    Follow-up to my earlier acceptance comment and the confirmation above: the protocol selection and normal cross-segment reuse were verified in that bounded run. Subsequent three-title paired physical-device tests found readiness failures and a reproduced late playback stop while the 7.36.0 ingest was still using HTTP/1.1. This blocks our downstream Hybrid 7.36.0 promotion. I am reopening #732 to track the held HLS transport's delivery, timeout and cancellation semantics; the #733 admission fix is a separate result.

    Setup and scope

    • Physical Apple TV 4K (AppleTV6,2), tvOS 26.6, HybridSmokePlayer in hybridAVKit mode with native AVPlayer presentation and LoadOptions.heldSourceConnection = true.
    • Candidate: AetherEngine 7.36.0, c6365cc3c8850bdb670654ca26dcd21f73670875, FFmpegBuild 3.7.1, without downstream 0005. Existing local-dependency/independent-audio/fingerprint patches 0001/0002/0004 remain; this is not a pristine build. The two transport owner files discussed below are byte-identical to official 7.36.0.
    • Historical reference: 7.33.2, e7afcfad3973426a6ffff31fc111f6b1e5078061, FFmpegBuild 3.7.0, with the exact unchanged downstream 0005-query-wrapped-hls-segment-ingest.patch (SHA-256 9cb48dfdff84aa917a0ca89833c37d12295246460b4b88e8ea1a5fa0ed4eb8e3). Hybrid's host binding, held option and observation sources are identical between arms; each version used a fixed signed binary throughout.
    • Three distinct ONE titles, all finite HEVC MPEG-TS HLS with query-wrapped segment URLs and AAC. Each pair used the same episode, original plugin-produced outer URL and headers. We invoked the actual current ONE Player() and locally verified complete media download plus sampled A/V decode. Later arms shared their pair's decoded sample after fresh URL/header and playlist-content checks, to avoid another full-media prefetch.
    • Ten-second seek, SegmentCache PCM 0–5 s, structured playback observations and two actual native screenshots at/after seek +120 s. Initial pair order alternated 7.36/0005, 0005/7.36, 7.36/0005; the second pair also required an explicit 7.36 repeat. Failed attempts remain recorded.

    Three paired results — 2026-10-16

    Ready means elapsed run-start to the finite paused/seekable session becoming ready. Advance at +120 means source-time advancement from the actual seek landing over the next 120 wall-clock seconds. The failed third-title arm uses its terminal snapshot plus the late frozen native frames, not an invented +120 event.

    Title / episode Version Ready Seek landing / error Advance at +120 Late observation
    剑来第2季 E01 7.36.0, no 0005 8 s 10.000 / 0.000 s 120.260 s Playing; native frames 02:40 → 02:52
    Same episode 7.33.2 + 0005 14 s 10.000 / 0.000 s 82.460 s Video progressed, but second late frame at +133.775 s was rebuffering with a spinner
    牧神记 E01 7.33.2 + 0005 Not reached Not performed N/A Readiness failure after 151 s from run start; loading, duration 0
    Same episode, ingest repeat 7.36.0, no 0005 Not reached Not performed N/A HTTP/1.1 Code 60 followed by readiness failure after 88 s; duration 0
    仙逆 E162 7.36.0, no 0005 54 s 10.000 / 0.000 s 12.742 s, then failed Failed at source 22.742 s / seek +70 s; both +122/+133 s frames remained frozen
    Same episode 7.33.2 + 0005 16 s 10.000 / 0.000 s 120.260 s Playing; different native frames at 02:10 → 02:21, no spinner

    All four runs that reached playback landed exactly at 10.000 s and returned 47 PCM buffers / 240640 frames covering source 0.000–5.013 s. The short smoke passed before the third-title 7.36.0 failure; the continued observer subsequently changed the result/UI to FAIL.

    The third-title failure's upstream evidence, with origin redacted:

    [HLSVODIngest] AE#732 connection vod#3 open <origin> protocol=http/1.1
    [HLSVODIngest] AE#732 connection vod#3 <origin> closed after 3 requests reason=Error Domain=NSPOSIXErrorDomain Code=60 "Operation timed out"
    [HLSVODIngest] terminal: Error Domain=NSPOSIXErrorDomain Code=60 "Operation timed out"
    

    The host then reported player_failed, stage=post_smoke_observation, source time 22.742, with Source read failed (code -1). This correlates the generic playback failure with the ingest timeout; it does not by itself identify which timeout policy fired.

    Concrete implementation differences

    These concern the successful-response media-body path, beyond HTTP version selection:

    Boundary Exact historical 0005 reference 7.36.0 held transport
    First-segment carriage probe Bounded head probe, up to 128 KiB, with an early verdict Downloads the entire first segment, classifies its prefix, then retains primedSegment for producer reuse
    Body delivery streamSegment → PersistentHTTP1Session.stream → QueryWrappedSegmentSink.receive; body chunks up to 64 KiB enter the FIFO while the response is still arriving PersistentHTTP1Transport.get accumulates a complete response Data; ingestSequentially calls append only after it returns
    Seek / reader-generation cancellation mid-body cancelSessionOnTaskCancellation: false; the superseded sink discards old-generation bytes while the serial transport drains the response, preserving the socket for the next request Cancellation retires/closes the active connection, discards the partial body, and a later request takes an available/fresh connection
    Normal segment-to-segment reuse Sequential HTTP/1.1 requests on the reader-owned session Sequential HTTP/1.1 requests using reusable idle pooled connections
    Media-transfer deadline 30 s per socket read; no 45 s total-exchange ceiling in this session 30 s per read plus a 45 s total exchange deadline shared across response-head/body reads

    Verified upstream locations: sequential full-segment delivery, whole-first-segment probe, deadline constants, exchange and cancellation, body accumulation.

    Why this matters for slow large segments: the second title's first segment is 16,180,032 bytes. At 100,000 bytes/s it needs about 162 seconds to complete. Streaming delivery can already feed the demuxer/remuxer while bytes arrive; it still cannot guarantee playback if sustained throughput is insufficient. The 7.36.0 path provides none of that segment to the FIFO before completion, and its 45 s exchange ceiling prevents this slowly progressing response from completing. Even ignoring overhead, that segment needs about 360 KB/s to fit the deadline. This delays the availability of each segment until completion; existing buffered media can hide that wait, but an empty FIFO receives none of the currently arriving segment. The deadline can turn an active-but-slow download into a terminal failure.

    That is a direct consequence of the code. It is not a claim that every observed Code 60 was proven to come from the 45 s ceiling, rather than the per-read timeout or another transport condition.

    Traffic evidence and limits

    Read-only localClash observations showed every correlated TV origin flow selecting Match → DIRECT, chain [DIRECT]; both playback ingests logged HTTP/1.1. No routing/DNS/proxy settings were changed.

    • Pair 1 used the same dominant IPv6 peer: 7.36 received 137,399,648 B over 118.562 sampled post-seek seconds (~1.159 MB/s), versus 0005's 59,526,470 B over 117.885 s (~0.505 MB/s). 7.36 performed better in this pair.
    • Pair 2 used slow IPv4 peers. The 7.36 repeat's first main flow received 4,669,499 B over 40.584 s (~0.115 MB/s) before disappearing around the timeout. The initial 0005 readiness window was missed by the traffic observer; its ~0.205 MB/s sample was after failure, so it is not a matched readiness-rate comparison.
    • Pair 3 used different actual peers: 7.36's IPv6 main flow received 8,078,165 B over 63.507 post-seek sampled seconds (~0.127 MB/s), then disappeared around the source-read failure. 0005's different IPv4 peer delivered 76,663,146 B over an observed 101.054 s subwindow (~0.759 MB/s); the first 17.549 post-seek seconds were not sampled. No exact 120 s transfer delta is inferred.

    Those rates include player read-ahead/backpressure and idle time; they are not link-capacity measurements. IPv4 was slow in one pair and fast in another; the same IPv6 peer was fast in pair 1 and slow in pair 3. The first pair favors 7.36, so this is not evidence that 0005 always wins.

    The Mac also reproduced large variation with the same persistent HTTP/1.1 IPv6 probe: a complete 16.18 MB segment in 1.217 s with A/V decode, then only 9,568,256 B in 120.597 s on a later full-body attempt. The latter remains a failed check. A separate 7.36 TV attempt received source HTTP 404 before ingest and is excluded from the transport comparison. Fresh manifests could change nested query parameters while retaining the same outer source URL and media paths. Three distinct titles and reduced repeated prefetching mitigate cache bias; they do not prove cold CDN caches. Version/FFmpeg differences, remote peers, source availability and timing mean this is a historical reference comparison, not isolated single-patch causality proof.

    Requested implementation follow-up

    1. Please consider streaming successful TS response bodies into the reader FIFO with backpressure, preserving one request at a time and cross-segment HTTP/1.1 reuse, as in 0005's delivery approach.
    2. Please revisit reader-owned connection lifetime across seek/probe cancellation: a superseded generation can stop publishing bytes while the transport drains the current response and keeps its socket. Draining delays a new seek when a response is slow, so its tradeoff should be explicit; preserving the socket and immediately aborting a response are different policies.
    3. Please revisit the fixed 45 s total-exchange ceiling for large media segments. An active-progress-aware or appropriately configurable policy should allow slow valid bodies to complete while retaining bounded memory/body size and distinguishing idle stalls from slow progress.
    4. Please expose idle-read timeout versus total-deadline expiry, received/expected bytes, elapsed transfer time and cancellation/drain/reuse events. Source read failed (code -1) alone hides the actionable cause.

    A deterministic throttled fixture (16.18 MB TS segment at ~100 KB/s, plus a seek during its body) would separate these implementation semantics from the live CDN's variation. The unchanged 0005 patch does not apply directly to 7.36.0; the recommendation is to use its streaming and drain/preserve behavior as a reference for the generic source-scoped transport, not to adopt its query-wrapped admission rule.

    The earlier bounded protocol/reuse PASS still stands, but sustained Hybrid playback is not accepted. #732 needs to remain open for this implementation follow-up. Signed playback URLs, query values, header values, device identifiers and raw private logs are intentionally omitted.

  6. reopened this on Oct 16, 2026
  7. added 2 commits that reference this issue on Oct 17, 2026
  8. superuser404notfound commented on Oct 17, 2026

    @superuser404notfound
    Owner

    Thank you for the paired runs and for the source pointers, they made this quick to pin down. The analysis holds, and one detail sharpens it: the Code=60 is the 45 s exchange deadline. read() set the socket read timeout to min(30 s, time left before the deadline), so when the deadline ran out, URLSessionStreamTask raised its own POSIX timeout instead of the transport's deadlineExceeded. A loopback reproduction shows exactly that shape: 11.6 MB segments at 200 KB/s, and on main the carriage probe died at 45.1 s with NSPOSIXErrorDomain Code=60 after 8.2 of 11.6 MB, after which the session left the ingest.

    PR #816 is merged to main (17215ee4c6029b4e7179450589ac2ea83a8af2b7) and addresses the four requests:

    1. Streaming bodies. A successful segment body enters the reader FIFO as it arrives, one request at a time per origin, with cross-segment HTTP/1.1 reuse unchanged. The carriage probe reads only the head of segment 0 and hands the still open response to the producer, so segment 0 is neither downloaded whole before the verdict nor requested twice. Backpressure applies at segment boundaries: with the FIFO full the current segment is read to its end, so a paused session leaves the connection idle between two requests rather than mid-body, where an origin's send timeout would end it.
    2. Connection lifetime across seeks. A request now claims its origin, and the next request waits for that connection to be pooled or closed, so a seek never opens a second connection beside a response still in flight. An abandoned body is drained and its socket kept only when at most 2 MB are left and the rate seen so far brings them in within 3 s; otherwise it is closed at once. On a slow origin this means a seek costs a fresh connection rather than up to 3 s of waiting followed by a fresh connection anyway.
    3. No fixed total ceiling on a body. 45 s now bounds only the wait for a response head. A body ends on its size limit or after 30 s without a byte, so a slow body that keeps progressing completes. The h2 path's 45 s resource timeout is lifted the same way.
    4. Diagnostics. A stall now reads body stalled, no bytes for 30 s after <received>/<expected> bytes in <elapsed> s, and a missed head deadline is reported as such. Connection events are logged: draining abandoned body, <progress>, drained, kept for the next request, closed after N requests reason=abandoned mid-body, <progress>, plus a per-request line with status, bytes, elapsed time and reused/fresh at verbose level.

    Loopback measurement with a keep-alive origin rate-limited across all its connections, 3 x 60 s HEVC-in-TS segments of about 11.6 MB:

    rate before after
    263 KB/s first frame at 177 s (the probe and the engine's two early repositions each downloaded segment 0 whole) first frame at 45 s, played through
    200 KB/s probe failed at 45.1 s with Code=60, session left the ingest ingest held, first frame at 65 s; rebuffering only because the link sat below the content rate

    The deterministic fixture suggested here is in the test suite: a slow segment readable before it completes, a seek during a slow body (drained or closed, never two connections at once), a stall carrying its progress, and a steady slow body that outlives the read timeout without being cut off.

    One limit that remains: the engine's two repositions onto segment 0 right after the open still cost one connection each. This was already the case before, and now they abandon a few hundred KB instead of whole segments. Also note that wall-clock numbers from loopback are not a device result.

    This is not in a release yet. For a device run before one, 17215ee4 can be pinned directly. The issue stays open until sustained Hybrid playback on the real titles confirms it.

  9. superuser404notfound commented on Oct 19, 2026

    @superuser404notfound
    Owner

    Released in 7.40.0: the streamed segment bodies on the persistent HTTP/1.1 ingest (17215ee4, PR #816) are in that tag and in 7.41.0, so a retest no longer needs a pinned commit. The issue stays open until sustained Hybrid playback on the real titles confirms it.

  10. qoli commented on Oct 23, 2026

    @qoli
    ContributorAuthor

    Physical Hybrid acceptance evidence — 2026-10-24

    Retested the same three ONE title/episode selections on a physical Apple TV 4K (AppleTV6,2), tvOS 26.6, with the standalone HybridSmokePlayer. All three accepted runs passed startup, a 10-second seek, and a further 120 seconds of media progress after initial seek recovery. This supplies the device evidence for the completed closure.

    Build and configuration

    • AetherEngine 7.45.0, 52802afaaf035a7f729bba1043b640ad4d9ebb3e; FFmpegBuild 3.9.0, 3b398c8f6340fe5fb4a7cb9a2a211a16677171e0.
    • SyncnextHybrid base commit 4b2d72cfbbad7a988a7e3d6fc1fe3cf9f0f0bc1c, plus local diagnostic-host changes to forward the explicit held-source option and delay terminal PASS until sustained observation finishes. No additional transport policy, timeout, concurrency or retry change was made for this acceptance.
    • Existing integration patches 0001/0002/0004/0007/0008 were present; 0005/0006 were absent. Patch 0007 adds opt-in request diagnostics and touches the transport files; this was a patched integration tree. Replaying the declared patch series in an isolated Git index matched the working source files, with only Package.resolved differing.
    • Explicit heldSourceConnection=true, hybridAVKit, playback rate 1, seek target 10 seconds. The accepted runs all retained avKitProxy and matching AVKit controller binding. Xianni/Mushenji asserted that route upfront; Jianlai used the existing observe-selected-route mode, which then requires the selected route to remain unchanged.
    • Resolved the same episodes through the current ONE Episodes/Player handlers. The outer URL SHA-256 values matched the historical selections; original URLs, query strings and headers were preserved. Playlist contents and CDN conditions can still change over time.

    Device results

    Startup required at least 2 seconds of actual media progress. Seeking used the AVKit user-navigation entry (seek_input=avkit_user_navigation). After initial post-seek recovery, the observer required another 120 seconds of media advancement and rejected player failure, early EOS, route/binding drift or failure to reach the target within its deadline.

    Title / episode Seek landing / error (s) Additional media progress / observation elapsed (s) Final source time (s) Result
    剑来第2季 E01 10.068 / 0.068 120.000 / 120.046 132.104 PASS
    牧神记 E01 10.036 / 0.036 120.079 / 120.174 132.143 PASS
    仙逆 E162 10.053 / 0.053 120.127 / 120.768 132.326 PASS

    Selected fields from the saved structured terminal events, annotated with the corresponding title:

    {"event":"sustained_playback_passed","runID":"54692ad6-2c96-4890-bbc8-9923f94bf7e8","title":"剑来第2季 E01","phase":"playing","progress_seconds":"120.000","elapsed_seconds":"120.046"}
    {"event":"sustained_playback_passed","runID":"0ed07f6d-61a4-4d84-ac03-e423a101337b","title":"牧神记 E01","phase":"playing","progress_seconds":"120.079","elapsed_seconds":"120.174"}
    {"event":"sustained_playback_passed","runID":"27b2167b-c799-4f2f-b5ec-6c9e816360d3","title":"仙逆 E162","phase":"playing","progress_seconds":"120.127","elapsed_seconds":"120.768"}

    Each run subsequently emitted run_passed. Native device PNG pairs were inspected and showed different actual video scenes, with visible media times Jianlai 01:48 → 02:07, Mushenji 01:47 → 02:03, and Xianni 01:47 → 02:04; no spinner or error was visible in those captures. A further Jianlai capture showed green PASS, playing, at 02:22. These frame observations supplement the structured clock/progress evidence.

    HTTP/1.1 connection evidence

    Xianni and Jianlai each opened only vod#1; both initial reposition cancellations drained their responses and kept that connection. Xianni excerpt, origin redacted:

    [HLSVODIngest] AE#732 connection vod#1 open <origin> protocol=http/1.1
    [HLSVODIngest] AE#732 connection vod#1 draining abandoned body, 278428/? bytes in 0.1 s
    [HLSVODIngest] AE#732 connection vod#1 drained, kept for the next request
    [HLSVODIngest] AE#732 connection vod#1 draining abandoned body, 61330/? bytes in 0.0 s
    [HLSVODIngest] AE#732 connection vod#1 drained, kept for the next request
    

    Mushenji's two initial repositions exceeded the existing 2 MiB drain budget, so those connections closed; vod#3 then carried the sustained run:

    [HLSVODIngest] AE#732 connection vod#1 open <origin> protocol=http/1.1
    [HLSVODIngest] AE#732 connection vod#1 <origin> closed after 2 requests reason=drain over 2097152 bytes
    [HLSVODIngest] AE#732 connection vod#2 open <origin> protocol=http/1.1
    [HLSVODIngest] AE#732 connection vod#2 <origin> closed after 1 request reason=drain over 2097152 bytes
    [HLSVODIngest] AE#732 connection vod#3 open <origin> protocol=http/1.1
    

    After these initial repositions, no further connection opened during the sustained playback windows. Continued HLS ingest across segments on those unchanged connections supports cross-segment reuse. The final connections remained active until the host was stopped, so no unprinted final request count is inferred. No h2 media ingest, HTTP 403, body-stall error or terminal source-read failure was observed in the three accepted runs.

    Focused tests and retained limits

    • swift test --package-path AetherEngine --filter Issue732PersistentHTTP1Tests: exit 0; 20 XCTest checks plus 12 parameterized segment-boundary admission cases passed, covering connection reuse, delivery before full-body completion, progressing slow bodies, stalls, seek drain/close, framing and redirects.
    • Signed generic tvOS build succeeded and was installed on the physical device above. Harness configuration tests passed 15/15 on tvOS Simulator 27.0.
    • Earlier excluded attempts remain recorded: one launch was refused while the TV slept; one Xianni run stopped on an incorrect native-route assertion; another Jianlai run had a Hybrid admission request-failed, then entered the HTTP/1.1 ingest with native presentation and stopped on the proxy-route assertion. The accepted Jianlai rerun positively classified HEVC and kept the proxy route throughout. The intermittent admission-probe failure's root cause remains unconfirmed; no production behavior was changed to hide it.

    This is bounded sustained-playback acceptance for the three reported source selections. Full-movie EOS, audible audio, HDR panel behavior, controlled physical-device throttling and TLS fault injection were not exercised. Original playback URLs, header values, device identifiers and full private logs remain local.

    The three-source sustained Hybrid retest passes within this scope, supporting the completed closure of #732.

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