Repository navigation
Conversation
A client reset destroyed the client but left the CONNECT tunnel socket open until the far end gave up; only a graceful end propagated. Tie both sockets' lifetimes together after the pipe is set up, and add a reset regression test next to the existing tunnel tests.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 43 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This was referenced Nov 24, 2026
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.
Closes #14337.
What
bin/proxy-relay.mjsonly propagated gracefulend(viapipe). A client reset (resetAndDestroy, as an aborted SSE/streaming request produces) destroyed the client but never touched the CONNECT tunnel socket, leaving one idle tunnel open per aborted request until the far end gave up.Change
After the pipe is set up:
Both directions, so the upstream→client direction also tears the client down if the far end vanishes.
Tests
New test
a client reset tears down the tunnel socket, matching graceful closeinbin/proxy-relay.test.mjs, using the fake-proxy pattern of the existing CONNECT-window test: sends a partial request, waits for the tunnel, callsresetAndDestroy(), asserts the tunnel-side socket closes within 3 s. Verified failing before the fix, passing after.node --test bin/proxy-relay.test.mjs— all 4 tests pass (first-line deadline, CONNECT-window byte order, the new reset test, endpoint.json republish), so graceful-close and normal proxying are unchanged.Confidence: high. Merging when checks pass is reasonable.
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-24T17:16:33Z", "session_id": "ses_e5df177e305ffeUZzwUyoH6CdK", "lane": null, "host": "amd", "worktree": "/home/user/git/fleet/dispatch-code-23601", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/user/git/fleet/dispatch-code-23601", "repo": "developing-today/code", "branch": "dispatch/23601-14337-proxy-relay-reset", "sha": "3c33319c11f63763906ba682625b34d387e66d8a" }, "auth_subject": "oc-code-04", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.