From 448ade7a463d40d264bf88b85e863fae12be9494 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Fri, 28 Aug 2026 17:29:32 +0200 Subject: fix(hub): 10s connect timeout in search page, error on unreachable download Search-page connections (indexing and pool) now time out after 10s instead of the transport's default 30s, so down nodes are skipped faster. Downloads show a user-facing error when a group is unreachable. Co-Authored-By: Claude Opus 4.6 --- packages/meshbay-hub/src/meshbay_hub/static/files-app.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'packages/meshbay-hub/src/meshbay_hub/static/files-app.js') diff --git a/packages/meshbay-hub/src/meshbay_hub/static/files-app.js b/packages/meshbay-hub/src/meshbay_hub/static/files-app.js index 75005e2..3d51e67 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/files-app.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/files-app.js @@ -44,9 +44,14 @@ function FilesPanel({ const downloadFile = useCallback(async (entry) => { let transport, gek; if (getTransport) { - const conn = await getTransport(entry); - transport = conn.transport; - gek = conn.gek; + try { + const conn = await getTransport(entry); + transport = conn.transport; + gek = conn.gek; + } catch { + setError(t('search.unreachable', { n: 1 })); + return; + } } else { transport = transportRef.current; gek = gekRef.current; -- cgit v1.2.3