docs: give each dl and serve flag and the error envelope one owner page and tighten the cli-reference test

This commit is contained in:
imSp4rky
2026-12-04 20:13:12 -07:00
parent 87b58190ea
commit f10b8dcf99
16 changed files with 90 additions and 181 deletions
+4 -4
View File
@@ -1,8 +1,8 @@
# Remote Session Protocol
The remote session protocol is the one record of the routes, login states, error codes and message
shapes that a `--remote` client and the server share. A remote session keeps an authenticated
service on the server between requests. The client logs in one time, then asks for titles, tracks,
This page lists the routes, login states, error codes and message shapes that a `--remote` client
and the server share. A remote session keeps an authenticated service on the server between
requests. The client logs in one time, then asks for titles, tracks,
segments and licences in the same remote session. The client downloads, decrypts and muxes.
The record is `unshackle/core/remote_protocol.py`: both the client (`unshackle/core/remote_service.py`,
@@ -174,7 +174,7 @@ The server keeps remote sessions in memory. A restart loses them all.
| Idle time | `serve.session_ttl`. Each request and each new remote session channel starts it again. A remote session does not reach it while a request works on it or while its remote session channel is open. |
| Idle time during the login | The larger of `session_ttl` and 600 seconds, unless the client is gone. |
| Client presence | See [Client presence](#client-presence). |
| Remote sessions at the same time | `serve.max_sessions`. A create at the limit ends the least recently used remote session of the API key that holds the most. A remote session that a request works on goes last. |
| Remote sessions at the same time | `serve.max_sessions`. A create at the limit ends one remote session: [`max_sessions`](../../reference/configuration/services.md#serve) gives which one. |
| Sweep | Every 5 seconds the server ends each expired remote session. |
[`serve`](../../reference/configuration/services.md#serve) in the configuration reference gives