diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-08-28 17:29:32 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-08-28 17:29:32 +0200 |
| commit | 448ade7a463d40d264bf88b85e863fae12be9494 (patch) | |
| tree | d38e93e4569ad1807dc3dc6a68b17b5f4b2f0290 /packages/meshbay-hub/src/meshbay_hub/static/files-app.js | |
| parent | 4ef6ca817e36e207f57dd810727f7225e7d26eff (diff) | |
| download | meshbay-448ade7a463d40d264bf88b85e863fae12be9494.tar.gz | |
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 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/files-app.js')
| -rw-r--r-- | packages/meshbay-hub/src/meshbay_hub/static/files-app.js | 11 |
1 files changed, 8 insertions, 3 deletions
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; |