fix(inference): close rejected Expect requests - #10283
Conversation
Signed-off-by: Apurv Kumaria <akumaria@nvidia.com>
|
This repository limits you to 10 open pull requests. Please close or merge an existing PR before opening another one. |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall line coverage in commit 6fc4683 in the TypeScript / code-coverage/cliThe overall line coverage in commit 6fc4683 in the Show a line coverage summary of the most impacted files.
Updated |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe bridge now destroys incomplete client requests after response completion or closure. It closes rejected ChangesRequest cleanup
Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
This follow-up remains required after #10254 merged. The repository closed this PR through the 10-open-PR policy. Apurv Kumaria has 10 open PRs:
I will not close an unrelated or excluded PR to free a slot. A human must merge or close an eligible Apurv PR, or apply the repository's documented exemption policy, before this PR can reopen. The repair commit is GitHub Verified and includes DCO sign-off. Local evidence passes 32 growth-guard tests, 21 affected bridge tests, CLI type checking, repository checks, and normal hooks. |
PR Review Advisor — No blocking findings reportedAdvisor assessment: No blocking advisor findings reported E2E guidanceAdvisory only. A maintainer can dispatch the default E2E suite for the commit under review. Recommended E2E: Manual-only E2E: This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge. |
Summary
This follow-up to #10254 closes an incomplete client connection when the upstream server rejects an
Expect: 100-continuerequest before accepting its body. The bridge now returns the upstream response, declares connection closure, and destroys the incoming request after the response finishes.Tinson Lai remains the primary contributor for the continuation support merged in #10254. Apurv Kumaria authors only this post-merge connection-lifecycle repair.
Changes
Connectionresponse header withclosefor this rejection path.Type of Change
Quality Gates
DGX Station Hardware Evidence
scripts/prepare-dgx-station-host.sh.Verification
Signed-off-by:line and every commit appears asVerifiedin GitHubpre-commit,commit-msg, andpre-pushhooks passed, ornpm run validate:prpassed after refreshingorigin/mainwhen hooks were skipped or unavailablenpm run test:changedpassed 32 growth-guard tests and 21 affected bridge tests.npm testfor broad runtime/test-harness changes;npm run checkfor repo-wide validation/coverage changes — command/result: Not applicable. CLI type checking and repository checks passed for this two-file change.npm run docsbuilds without warnings (doc changes only)Signed-off-by: Apurv Kumaria akumaria@nvidia.com
Summary by CodeRabbit
Expect: 100-continuerequests are rejected.Connection: closeto applicable rejection responses to ensure connections close cleanly.