Skip to content

Reuse HTTP clients and close blocklist responses - #393

Merged
hansott merged 2 commits into
mainfrom
fix/http-client-resources
Oct 19, 2026
Merged

hansott merged 2 commits into
mainfrom
fix/http-client-resources

Conversation

@teta2k

@teta2k teta2k commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Cloud requests create a new HTTP client for each call, and failed blocklist responses can leave the response body unclosed. Reuse a client per reporting/realtime API instance and close blocklist bodies on error statuses and JSON/gzip parsing failures.

Validation: five focused JUnit tests passed on Java 17 using compiled worktree classes and cached dependencies. The full Gradle build and test suite remain unverified because Maven Central blocked dependency downloads.

@codecov

codecov Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@teta2k
teta2k marked this pull request as ready for review October 19, 2026 14:54
@hansott
hansott merged commit 7732a1d into main Oct 19, 2026
283 checks passed
@hansott
hansott deleted the fix/http-client-resources branch October 19, 2026 15:05
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