Repository navigation
reverseproxy: close upstream body when handle_response status is invalid - #8318
Merged
steadytao merged 2 commits intoNov 3, 2026
Merged
Conversation
When a handle_response status code did not evaluate to an integer, the handler returned a 500 without closing the upstream response body, leaking the connection.
|
✅ Contributor License Agreement All identified contributors have signed the CLA. Thank you! |
steadytao
approved these changes
Nov 3, 2026
When a handle_response status code did not evaluate to an integer, the
handler returned a 500 without closing the upstream response body,
leaking the connection.
Assistance Disclosure
The bug was found during a code review done with Claude Code (Anthropic), which also drafted the fix and the test. I reviewed the change, can explain every line, and ran
go test -race -shorton the affected package before opening this PR.