From fee3ffc764a111192561e49c355c51e4c3009d0b Mon Sep 17 00:00:00 2001 From: Laan Tungir Date: Fri, 26 Jun 2026 10:14:21 -0400 Subject: [PATCH] =?UTF-8?q?Increase=20getRelayData/getRelayStats=20timeout?= =?UTF-8?q?=20from=205s=20to=2015s=20=E2=80=94=20worker=20is=20busy=20proc?= =?UTF-8?q?essing=20outbox/NDK=20events=20from=20feed.html=20warmOutbox,?= =?UTF-8?q?=20causing=20message=20queue=20delays?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/js/init-ndk.mjs | 8 ++++---- www/js/version.json | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/www/js/init-ndk.mjs b/www/js/init-ndk.mjs index bf6f0a9..0242328 100644 --- a/www/js/init-ndk.mjs +++ b/www/js/init-ndk.mjs @@ -1038,7 +1038,7 @@ export async function getRelayData() { pendingRequests.set(requestId, { resolve, reject }); - // Set timeout + // Set timeout (15s — worker may be busy processing outbox/NDK events) setTimeout(() => { if (pendingRequests.has(requestId)) { pendingRequests.delete(requestId); @@ -1046,7 +1046,7 @@ export async function getRelayData() { console.warn('[init-ndk] Get relay data timeout, returning empty array'); resolve([]); } - }, 5000); + }, 15000); ndkWorker.port.postMessage({ type: 'getRelayData', @@ -1071,7 +1071,7 @@ export async function getRelayStats() { pendingRequests.set(requestId, { resolve, reject }); - // Set timeout + // Set timeout (15s — worker may be busy processing outbox/NDK events) setTimeout(() => { if (pendingRequests.has(requestId)) { pendingRequests.delete(requestId); @@ -1079,7 +1079,7 @@ export async function getRelayStats() { console.warn('[init-ndk] Get relay stats timeout, returning empty object'); resolve({}); } - }, 5000); + }, 15000); ndkWorker.port.postMessage({ type: 'getRelayStats', diff --git a/www/js/version.json b/www/js/version.json index 2f3dca6..9020189 100644 --- a/www/js/version.json +++ b/www/js/version.json @@ -1,5 +1,5 @@ { - "VERSION": "v0.7.46", - "VERSION_NUMBER": "0.7.46", - "BUILD_DATE": "2026-06-26T14:11:55.621Z" + "VERSION": "v0.7.47", + "VERSION_NUMBER": "0.7.47", + "BUILD_DATE": "2026-06-26T14:14:21.559Z" }