Repository navigation
Conversation
…t-response timeout A hub that accepts the TCP connection but never sends response headers parks the proxy request forever: `httpClient.execute` waits indefinitely for headers, hanging the client fiber with no error. Wrap `execute` in `Effect.timeoutOption(30s)`. On expiry the proxy returns 504 'Device hub did not respond' instead of hanging. `execute` resolves once headers arrive and the body streams afterward, so this bounds time-to-first-response without truncating long-lived MJPEG/AVCC bodies. Tests: existing DeviceHubProxy suite 14/14 green (no regression). A dedicated 504 integration test is blocked: Effect v4's `HttpClient.withScope` never invokes a hanging stub executor, and the repo's AGENTS.md forbids timeout-dependent tests. authored with AI assistance (Muse, Meta's Muse Spark) under the contributor's direction
|
Warning Review limit reachedNext included review available in 58 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. Only developers with an assigned seat can use this organization's usage-based review budget, and seats here are assigned manually. Ask an admin to assign a seat, or change the review continuation mode in Billing. Review configuration: ⚙️ Run configurationConfiguration used: Repository: pingdotgg/t3code/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Comment |
|
Note This comment is posted by Julius' dot The 14 existing tests don't exercise the new 30-second deadline or 504 response, and the PR explicitly says that check is blocked. Closing under the verification rule. Add a focused regression that shows a stalled hub returns 504 while a successful long-lived response keeps streaming, report the result, and request reconsideration. |
A hub that accepts the TCP connection but never sends response headers parks the proxy request forever:
httpClient.executewaits indefinitely for headers, hanging the client fiber with no error.Wraps
executeinEffect.timeoutOption(30s). On expiry the proxy returns 504 'Device hub did not respond' instead of hanging.executeresolves once headers arrive and the body streams afterward, so this bounds time-to-first-response without truncating long-lived MJPEG/AVCC bodies.Tests: existing DeviceHubProxy suite 14/14 green (no regression). A dedicated 504 integration test is blocked: Effect v4's
HttpClient.withScopenever invokes a hanging stub executor, and the repo AGENTS.md forbids timeout-dependent tests.authored with AI assistance (Muse, Meta's Muse Spark) under the contributor's direction