Skip to content

Sanitise HTTP body closing#865

Merged
mhutchinson merged 2 commits into
transparency-dev:mainfrom
mhutchinson:bug/close-http
May 27, 2026
Merged

Sanitise HTTP body closing#865
mhutchinson merged 2 commits into
transparency-dev:mainfrom
mhutchinson:bug/close-http

Conversation

@mhutchinson
Copy link
Copy Markdown
Contributor

A HTTP request body MUST be closed before returning. Failure to do so can lead to memory and socket leaks. This change moves the deferred close immediately after the HTTP request is confirmed to have returned a response.

A HTTP request body MUST be closed before returning. Failure to do so can lead to memory and socket leaks. This change moves the deferred close immediately after the HTTP request is confirmed to have returned a response.
@mhutchinson mhutchinson requested a review from a team as a code owner May 27, 2026 11:36
@mhutchinson mhutchinson removed the request for review from a team May 27, 2026 11:36
@mhutchinson mhutchinson requested review from AlCutter and roger2hk May 27, 2026 11:36
@mhutchinson mhutchinson merged commit 7bc56a4 into transparency-dev:main May 27, 2026
14 checks passed
@mhutchinson mhutchinson deleted the bug/close-http branch May 27, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants