From a29a167977a8f599ca3a755f34e5a9ef2c313bd8 Mon Sep 17 00:00:00 2001 From: bonamin Date: Tue, 17 Nov 2026 00:54:07 +0200 Subject: [PATCH] fix(waiter): rediscovery probe timeout 1.5 s -> 3 s A new plain-HTTP connection can take about a second on a busy network; inside the 48-wide /24 scan the real server's answer then missed the 1.5 s limit and the moved server was never found (seen on the Android emulator, 0.9 s first connection). 3 s keeps a full scan under ~20 s. Co-Authored-By: Claude Opus 5.5 --- waiter_pwa/src/native/rediscovery.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/waiter_pwa/src/native/rediscovery.js b/waiter_pwa/src/native/rediscovery.js index 6b4333c..c846587 100644 --- a/waiter_pwa/src/native/rediscovery.js +++ b/waiter_pwa/src/native/rediscovery.js @@ -13,7 +13,10 @@ */ import { SUPPORTED_API_VERSIONS } from './apiVersion.js' -const PROBE_TIMEOUT_MS = 1500 +// A new plain-HTTP connection can take ~1 s on a busy network (the Android emulator: 0.9 s, +// found in plan step 4.3); during a 48-wide scan the real server's answer then missed a 1.5 s +// limit and it was never found. 3 s keeps a full /24 scan under ~20 s. +const PROBE_TIMEOUT_MS = 3000 // The first TLS connection to a venue server in a fresh app process takes ~2s // (WebView certificate check + our pin callback); after that it's milliseconds. // A shorter timeout would abort a perfectly healthy server.