Location
sdks/typescript/pmxt/server-manager.ts:111
Code
// isReady() check
const response = await fetch(`http://localhost:${port}/health`);
Risk
The isReady() health check calls fetch against the local sidecar server with no timeout. If the local server is hung (e.g., during a crash loop or deadlock), this call never returns, blocking callers of isReady() indefinitely.
Affected Methods
ServerManager.isReady() — used to gate SDK initialization
Suggested Fix
const response = await fetch(`http://localhost:${port}/health`, {
signal: AbortSignal.timeout(5_000),
});
Found by automated missing timeout audit
Location
sdks/typescript/pmxt/server-manager.ts:111Code
Risk
The
isReady()health check callsfetchagainst the local sidecar server with no timeout. If the local server is hung (e.g., during a crash loop or deadlock), this call never returns, blocking callers ofisReady()indefinitely.Affected Methods
ServerManager.isReady()— used to gate SDK initializationSuggested Fix
Found by automated missing timeout audit