Deployed f4d178c2 with MkDocs version: 1.6.1

This commit is contained in:
2026-11-29 04:49:58 +00:00
parent 6c4ecc8e75
commit ae027db763
7 changed files with 43 additions and 24 deletions
+16 -11
View File
@@ -3163,8 +3163,9 @@ request finds the remote session gone.</p>
<code>ttl</code>, in-flight-auth remote sessions expire at <code>AUTH_INPUT_TIMEOUT</code>. The removal of
a remote session cancels its <code>InputBridge</code> and deletes its cache directory (pruning
empty parent dirs up to, but not including, the cache root).</li>
<li>The server calls <strong><code>cancel_all_bridges()</code></strong> on shutdown, to unblock any waiting
auth threads.</li>
<li>The server calls <strong><code>cancel_all_bridges()</code></strong> on shutdown. It ends each open remote session, which
unblocks any waiting auth threads, and deletes the cache directory of each one. The server then waits up
to 5 seconds for each login that still runs, and deletes its cache directory again when it ends.</li>
</ul>
<p><code>SessionEntry</code> fields:</p>
<table>
@@ -3298,14 +3299,14 @@ the error codes and the request and reply shapes that it shares with the server
closes its remote session, so the drain can end and the refreshed cache comes back.
It waits until <code>/api/health</code> reports the restarted server without <code>draining</code>,
opens a new remote session, and continues with the next title.</li>
<li>A lost remote session (<code>SESSION_NOT_FOUND</code>, a connection error, a timeout, a closed
tunnel or a gateway error page): the client waits for <code>/api/health</code>, then checks the
old remote session. A live remote session takes the call again only after a connection
error, because a timed-out call can already have run. A lost one is replaced: the
<li>A lost remote session (<code>SESSION_NOT_FOUND</code>, a connection error, an answer cut off
after its headers, a timeout, a closed tunnel or a gateway error page): the client waits
for <code>/api/health</code>, then checks the old remote session. A live remote session takes the
call again only after a connection error, because a timed-out call can already have run.
A cut-off answer counts as a connection error, so the server can run that call twice. A lost one is replaced: the
client opens a new remote session, sends <code>titles</code> and the current title's <code>tracks</code>
again, and then sends the failed call again. A title or track that the new remote
session gives another ID keeps its old ID on the client, and the client sends the
new ID. The client matches a title by season and episode number, and a track by its
again, and then sends the failed call again. A title or track that the new remote session
gives another ID keeps its old ID on the client, and the client sends the new ID. The client matches a title by season and episode number, and a track by its
attributes.</li>
</ul>
<p>The client waits up to 30 minutes for the server, which covers a deploy's drain. It
@@ -3313,8 +3314,12 @@ stops with an error if the new remote session licenses differently from the old
for example after a change to the API key's <code>server_cdm</code> grant. An interactive login
asks for its input again.
- <strong>Server resolution.</strong> <code>resolve_server()</code> reads <code>config.remote_services.&lt;name&gt;</code>
into <code>{url, api_key, services, server_cdm}</code>, injecting the <code>server_cdm</code> flag into
the services map as <code>_server_cdm</code>.</p>
into <code>{url, api_key, services, server_cdm}</code>. It puts the <code>server_cdm</code> flag into a
copy of the services map as <code>_server_cdm</code>, and never changes the loaded config.
- <strong>Optional routes.</strong> A call to a route that an older server can lack (the segment filter,
bad content key reports, the log poll) counts as empty only when the server answers 404
with no <code>error_code</code>. Any other error stops the call: a segment filter that fails on the
server stops the track download, and the client never keeps every segment in its place.</p>
</li>
</ul>
<hr />