Skip to content

Comments

fix: add 5s timeout to TenVADWorkerClient requests#139

Open
ysdede wants to merge 1 commit intoaudit/perf-degradation-resource-mgmtfrom
fix/tenvad-timeout-14434834885389086806
Open

fix: add 5s timeout to TenVADWorkerClient requests#139
ysdede wants to merge 1 commit intoaudit/perf-degradation-resource-mgmtfrom
fix/tenvad-timeout-14434834885389086806

Conversation

@ysdede
Copy link
Owner

@ysdede ysdede commented Feb 15, 2026

Implemented a 5-second timeout in TenVADWorkerClient.sendRequest. This ensures that if the TEN-VAD worker fails to initialize (e.g., due to network error loading WASM) or crashes without sending a response, the client promise will reject with a timeout error instead of hanging indefinitely. This fixes the TenVADWorkerClient.test.ts failure where the test timed out waiting for an error response that was lost or delayed.


PR created automatically by Jules for task 14434834885389086806 started by @ysdede

Prevents indefinite hanging when the worker fails to respond or initialize.
Fixes `TenVADWorkerClient.test.ts` timeout failure.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@kiloconnect
Copy link

kiloconnect bot commented Feb 15, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Overview

Severity Count
CRITICAL 0
WARNING 0
SUGGESTION 1

The PR adds a 5-second timeout mechanism to handle worker unresponsiveness or init failures. The implementation is sound.

Issue Details (click to expand)

SUGGESTION

File Line Issue
src/lib/vad/TenVADWorkerClient.ts 146 Consider making the timeout configurable rather than hardcoded to 5000ms
Files Reviewed (1 file)
  • src/lib/vad/TenVADWorkerClient.ts - 1 suggestion

Repository owner deleted a comment from google-labs-jules bot Feb 17, 2026
Repository owner deleted a comment from coderabbitai bot Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant