aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/src')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/transport.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/transport.js b/packages/meshbay-hub/src/meshbay_hub/static/transport.js
index 63c71ff..1a28fb0 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/transport.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/transport.js
@@ -1619,8 +1619,14 @@ class MeshBayTransport {
* a position in the list this client received.
*/
async requestSubtitle(fileId, track) {
+ // Generous because the node's own bound is, and for the same reason: the
+ // extraction demuxes the whole container, measured at 9.8 s per GB on an
+ // external disk — 71 s for a 7.3 GB film, and more for a 4K one. The node
+ // always answers, with a refusal if its own budget runs out, so this is a
+ // backstop against a peer that has gone silent rather than a deadline for
+ // the work. It is paid once per film: every later viewing is cached.
const msg = await this._sendAndWait(
- { type: 'subtitle_req', v: '0.9', file_id: fileId, track }, 90000);
+ { type: 'subtitle_req', v: '0.9', file_id: fileId, track }, 900000);
if (msg.type === 'error') throw new Error(msg.detail);
return msg;
}