Skip to content

Commit e8de098

Browse files
committed
fix: raise abgen ready timeout to 60s to survive slow first boots
1 parent 1a8fb64 commit e8de098

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/@dcl/sdk-commands/src/commands/start/asset-bundles.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ import { getPort } from '../../logic/get-free-port'
88
import { b64UrlHashingFunction } from '../../logic/project-files'
99
import { ABGEN_VERSION, resolveAbgenBin } from './abgen-binary'
1010

11-
const READY_TIMEOUT_MS = 15_000
11+
// generous: first boots can be slow to bind (e.g. Windows Defender scanning a
12+
// freshly downloaded binary), and giving up here strands the still-running
13+
// sidecar — it keeps converting and holding the port with no handle to kill it
14+
const READY_TIMEOUT_MS = 60_000
1215
const READY_POLL_INTERVAL_MS = 250
1316
const READY_REQUEST_TIMEOUT_MS = 2_000
1417
const PREWARM_POLL_MS = 2_500

0 commit comments

Comments
 (0)