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 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 00:54:07 +02:00
co-authored by Claude Opus 5.5
parent 8299184e3a
commit a29a167977
+4 -1
View File
@@ -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.