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

fix: [release-3.11] cherry pick #2690 #2717

Conversation

sozercan
Copy link
Member

@sozercan sozercan commented Apr 25, 2023

cherry pick #2690 to release-3.11 branch

- The resp.Body was never closed, thus causing one connection to be
  leaked for each executions.

- Creating a new transport based on the default transport, to inherit
  some of the default timeouts. Most importantly, this ensure that there
  is a default TLSHandshakeTimeout (10s) and dial timeout (30s).

- Disable http keep alive, to avoid reuse of the same http connection.
  Otherwise, we may fail the healthcheck when the certs is rotated (new
  cert on disk wouldn't match the cert attached to the reused connection
  opened earlier).

Fix open-policy-agent#2654

Signed-off-by: Thibault Deutsch <thibault@arista.com>
@sozercan sozercan changed the title [release-3.11] cherry pick #2690 fix: [release-3.11] cherry pick #2690 Apr 25, 2023
@sozercan sozercan requested a review from ritazh April 25, 2023 17:14
@codecov-commenter
Copy link

Codecov Report

Patch coverage has no change and project coverage change: -0.02 ⚠️

Comparison is base (5ab9a96) 53.37% compared to head (604efb0) 53.35%.

Additional details and impacted files
@@               Coverage Diff                @@
##           release-3.11    #2717      +/-   ##
================================================
- Coverage         53.37%   53.35%   -0.02%     
================================================
  Files               115      115              
  Lines             10198    10213      +15     
================================================
+ Hits               5443     5449       +6     
- Misses             4338     4349      +11     
+ Partials            417      415       -2     
Flag Coverage Δ
unittests 53.35% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/webhook/health_check.go 0.00% <0.00%> (ø)

... and 3 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@ritazh ritazh left a comment

Choose a reason for hiding this comment

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

LGTM

@sozercan sozercan merged commit 042991e into open-policy-agent:release-3.11 Apr 25, 2023
@sozercan sozercan deleted the automated-cherry-pick-of-#2690-upstream-release-3.11 branch April 25, 2023 17:30
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.

4 participants