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

This change will ensure a single HTTP client is created #285

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

wolfeidau
Copy link
Contributor

To ensure we get consistent connection reuse, pooling I have extracted the HTTP Client used by all collections. This client has been configured with a set of timeouts at both the client and transport level.

I have used the following post as a reference https://blog.cloudflare.com/the-complete-guide-to-golang-net-http-timeouts

To ensure we get consistent connection reuse, pooling I have extracted the HTTP Client used by all collections. This client has been configured with a set of timeouts at both the client and transport level.

I have used the following post as a reference https://blog.cloudflare.com/the-complete-guide-to-golang-net-http-timeouts
@wolfeidau wolfeidau marked this pull request as ready for review June 4, 2024 00:20
@wolfeidau wolfeidau requested a review from DrJosh9000 June 4, 2024 00:20
Copy link
Contributor

@DrJosh9000 DrJosh9000 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@wolfeidau wolfeidau merged commit 861b62b into master Jun 4, 2024
1 check passed
@wolfeidau wolfeidau deleted the fix_central_http_client branch June 4, 2024 00:31
wolfeidau added a commit that referenced this pull request Jun 6, 2024
[Full Changelog](v5.9.5...v5.9.6)

- This change enables configuration of http connection pooling [#286](#286) (@wolfeidau)
- This change will ensure a single HTTP client is created [#285](#285) (@wolfeidau)
wolfeidau added a commit that referenced this pull request Jun 6, 2024
[Full Changelog](v5.9.5...v5.9.6)

- This change enables configuration of http connection pooling [#286](#286) (@wolfeidau)
- This change will ensure a single HTTP client is created [#285](#285) (@wolfeidau)
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