-
Notifications
You must be signed in to change notification settings - Fork 213
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 and fix the wrong TLS and Proxy settings during MinioClient creation #641
Reuse HttpClient and fix the wrong TLS and Proxy settings during MinioClient creation #641
Conversation
Running |
You need fix, your formatting is all wrong for a .Net project source. Also you can't remove TLS skip for verification. Or you would have to trust the certs in CI/CD |
OK. I'll add TLS back. About formatting: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some reviews
40529a6
to
a13707e
Compare
Implemented review comments and removed the socket/memory test per team decision. Marked the parameterized construction method,
|
ebac77f
to
00174cf
Compare
I am not sure what is the bug fix here? @ebozduman - can you please explain? |
Sorry for the confusion. TLDR: This PR will make the last 3 test cases reuse the existing HttpClient instance and fix the wrong TLS and Proxy settings when creating an instance of MinioClient. Some more explanations: In the meantime, I discussed with Bala and like the other SDKs, we've decided a functional test for socket leakage is not necessary. I also got the reviews from you for the unnecessary HttpHandler creation which was turning off TLS and the review about the proxy setting that causes not honoring local system proxies. So, this PR will make the last 3 test cases to reuse the existing HttpClient instance and fix the wrong TLS and Proxy settings. |
Socket/Memory leak issue was addressed before, but there was a case where we were not using HttpHandler when MinioClient is created with no args.
Also adds a functional test for socket/memory leak issue.