Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
A diagnostic upload that timed out before receiving response headers could trigger an unhandled socket error after reporting its timeout. The cleanup now safely absorbs the later error.
What Changed
Install a callback that captures no request data before destroying the HTTP request. Existing callbacks and buffered response data can still be released by the normal cleanup path.
Why
Node can emit
ECONNRESETasynchronously afterdestroy(). Removing every error callback before that event turned successful timeout cleanup into an unhandled error. A small static callback handles that event without keeping the upload's captured data alive.Linked Issue
N/A — found during the requested resource-lifetime audit; tracking stays local.
Visual Proof
N/A — request teardown has no UI change.
Testing
socket hang upand process exit 1. The same probe exits 0 after the change.ORCA_BACKGROUND_LAUNCH=1; no diagnostics were sent to an external endpoint.AI Disclosure
Implemented and reviewed with Codex.
Review
Reviewed Node request event ordering and ensured the new callback has no closure over payloads. The timeout error and response size limit are unchanged.
Agent skill upstream boundary
Notes
This is an error-listener lifetime defect found by the audit, not evidence of a memory leak. The shared Node HTTP path covers local clients regardless of workspace or execution host.
Checklist