Skip to content

Take HttpClient externally in Vertx Endpoint(Startup)HealthCheck (BREAKING) - #236

Open
sksamuel wants to merge 1 commit into
mainfrom
fix/vertx-endpoint-healthcheck-external-client
Open

Take HttpClient externally in Vertx Endpoint(Startup)HealthCheck (BREAKING)#236
sksamuel wants to merge 1 commit into
mainfrom
fix/vertx-endpoint-healthcheck-external-client

Conversation

@sksamuel

Copy link
Copy Markdown
Owner

Summary

Breaking change. Both Vertx endpoint checks created their own `HttpClient` and never closed it. Take the client from the caller, who now owns the lifecycle. Mirrors the same change made on the Ktor side.

Test plan

  • Existing tests pass
  • Callers can share a single HttpClient and close it on shutdown

🤖 Generated with Claude Code

…AKING)

Both Vert.x endpoint checks created their own client via
`vertx.createHttpClient()` and never closed it. Each registered instance
leaked a pool of connections and netty resources tied to the Vertx
instance.

Make the constructor take an `io.vertx.core.http.HttpClient` from the
caller, who owns the lifecycle. Same change as the Ktor sibling.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

1 participant