Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a new HttpClient per connection #1243

Merged
merged 3 commits into from
Feb 15, 2024

Conversation

4drian3d
Copy link
Contributor

@4drian3d 4drian3d commented Feb 13, 2024

This would solve a rare "too many concurrent streams" error.

@4drian3d 4drian3d added the type: bug Something isn't working label Feb 13, 2024
If the instance is using Java 21, the HttpClient resources will be cleaned using its AutoCloseable interface
@4drian3d 4drian3d changed the title Cache HttpClients instead of having a single instance Create a new HttpClient per connection Feb 14, 2024
@4drian3d 4drian3d merged commit ecf936f into dev/3.0.0 Feb 15, 2024
2 checks passed
@4drian3d 4drian3d deleted the fix/httpclient-concurrent-streams branch February 15, 2024 15:00
rybot666 added a commit to GemstoneGG/Velocity-CTD that referenced this pull request May 3, 2024
rybot666 added a commit to GemstoneGG/Velocity-CTD that referenced this pull request May 3, 2024
rybot666 added a commit to GemstoneGG/Velocity-CTD that referenced this pull request May 9, 2024
rybot666 added a commit to GemstoneGG/Velocity-CTD that referenced this pull request May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants