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

loki-canary: Fix resource leak when using client-side certs #1

Closed
wants to merge 1 commit into from

Conversation

chodges15
Copy link
Owner

What this PR does / why we need it:
When running canary with client side certificates (introduced in grafana#6310), a new http.Transport is being created for each request 🤦‍♂️. As a result, connections are left open until they timeout an hour later. This quickly causes resource exhaustion and errors like dial tcp 1.1.1.1:1111: connect: cannot assign requested address.

This change will reuse the same transport for all requests just like http.DefaultClient is reused when not using client certs.

@chodges15 chodges15 closed this Jul 5, 2022
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