mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-01 21:45:10 +00:00
fix(remote): end every remote wait of a run when the user cancels it
This commit is contained in:
@@ -794,8 +794,8 @@ the error codes and the request and reply shapes that it shares with the server
|
||||
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.
|
||||
|
||||
The client waits up to 30 minutes for the server, which covers a deploy's drain. It
|
||||
stops with an error if the new remote session licenses differently from the old one,
|
||||
The client waits up to 30 minutes for the server, which covers a deploy's drain. A Ctrl+C
|
||||
ends this wait. The client stops with an error if the new remote session licenses differently from the old one,
|
||||
for example after a change to the API key's `server_cdm` grant. An interactive login
|
||||
asks for its input again.
|
||||
- **Server resolution.** `resolve_server()` reads `config.remote_services.<name>`
|
||||
@@ -819,8 +819,14 @@ saves the returned cache and then stops the tunnel. It does so:
|
||||
- when a serve that relays for a REST client closes its pooled remote session
|
||||
|
||||
The `DELETE` has a connect and read timeout of 15s each. The client sends it again only once, when a gateway answers with
|
||||
an error page or asks for the API key in the other header. It does not wait for a rate limit. A Ctrl+C waits for the
|
||||
download threads before it ends the remote session.
|
||||
an error page or asks for the API key in the other header. It does not wait for a rate limit.
|
||||
|
||||
A Ctrl+C during the downloads cancels the run. The client waits for the download threads and for the content keys that
|
||||
still go to the vaults, and then ends the remote session. The cancel ends each wait of a download thread within 0.5s:
|
||||
the wait for a server that restarts, for a rate limit and for a login. A cancelled thread opens no new remote session,
|
||||
and the client deletes a remote session that a thread opens at that moment. The cancel does not stop a request that the
|
||||
server already has: the client waits for its answer. A failed track is no cancel, so the next title can open
|
||||
a new remote session.
|
||||
|
||||
While the client ends a remote session, it ignores the first Ctrl+C, so it does not lose the returned cache. The next
|
||||
Ctrl+C stops the wait at once, and the process then waits for no other end. The count of Ctrl+C is one for the process.
|
||||
|
||||
Reference in New Issue
Block a user