Skip to content

Conversation

@ybasket
Copy link
Contributor

@ybasket ybasket commented Feb 3, 2024

As Java 21+ allows explicitly closing clients, this adds new constructors that return the clients wrapped in a Resource. On older Java versions, the release is a no-op, on newer it enforces the cleanup of resources.

Also ensures the websocket client closes the input channel on release so the connection gets properly closed.

Closes #1011

As Java 21+ allows explicitly closing clients, this adds new constructors that return the clients wrapped in a Resource. On older Java versions, the release is a no-op, on newer it enforces the cleanup of resources.

Also ensures the websocket client closes the input channel on release so the connection gets properly closed.

Closes http4s#1011
@mergify mergify bot added the core label Feb 3, 2024
@hamnis hamnis changed the base branch from series/0.9 to series/0.10 November 19, 2024 16:41
@mergify mergify bot added the docs label Nov 19, 2024
@hamnis hamnis requested a review from amesgen November 20, 2024 19:31
@hamnis hamnis merged commit 3c8067a into http4s:series/0.10 Dec 6, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Java 21+: Ensure simple client is closed

3 participants