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

Reuse HttpClient to pool connections #954

Merged
merged 2 commits into from
Oct 11, 2022
Merged

Reuse HttpClient to pool connections #954

merged 2 commits into from
Oct 11, 2022

Conversation

Taikelenn
Copy link
Contributor

Description of the PR

Create a single HttpClient instance and reuse it throughout the lifetime of IntelliJ. This is actually in line with the official performance guidelines https://hc.apache.org/httpclient-legacy/performance.html
TODO: consider if there's an easy wait to periodically evict client-sided CLOSE_WAITs

@Taikelenn Taikelenn linked an issue Oct 5, 2022 that may be closed by this pull request
@Taikelenn Taikelenn marked this pull request as ready for review October 6, 2022 08:37
@OlliKiljunen OlliKiljunen self-requested a review October 10, 2022 10:05
Copy link
Member

@OlliKiljunen OlliKiljunen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Taikelenn Taikelenn merged commit f890267 into master Oct 11, 2022
@Taikelenn Taikelenn deleted the tcp-connections branch October 11, 2022 13:18
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 19 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

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.

HTTP requests wastefully spawn new connections
2 participants