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.