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: allow retries and disable ssl to co-exist #154

Merged
merged 2 commits into from
Feb 1, 2022
Merged

Conversation

padamstx
Copy link
Member

Previously, the "disable ssl" and "auto retries"
scenarios were mutually exclusive due to the way in
which the http client instances were managed.
The result was that you could not enable retries
and also disable ssl verification.

This commit fixes this problem by adding more precise
code to configure the "disable ssl" feature and
also reuses existing client instances where possible.

@padamstx padamstx self-assigned this Jan 31, 2022
@padamstx padamstx force-pushed the fix-disable-ssl branch 3 times, most recently from 4aca49c to 4b4979f Compare January 31, 2022 22:50
@padamstx padamstx requested review from pyrooka and dpopp07 January 31, 2022 22:55
Copy link
Member

@pyrooka pyrooka left a comment

Choose a reason for hiding this comment

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

Looks really good!

v5/core/base_service.go Show resolved Hide resolved
Previously, the "disable ssl" and "auto retries"
scenarios were mutually exclusive due to the way in
which the http client instances were managed.
The result was that you could not enable retries
and also disable ssl verification.

This commit fixes this problem by adding more precise
code to configure the "disable ssl" feature and
also reuses existing client instances where possible.
Copy link
Member

@dpopp07 dpopp07 left a comment

Choose a reason for hiding this comment

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

Looks good! 👍

Left one small comment to address before merging but will approve to avoid the re-review

v5/core/base_service.go Outdated Show resolved Hide resolved
@padamstx padamstx merged commit b16fe8d into main Feb 1, 2022
@padamstx padamstx deleted the fix-disable-ssl branch February 1, 2022 20:41
padamstx pushed a commit that referenced this pull request Feb 2, 2022
## [5.9.2](v5.9.1...v5.9.2) (2022-02-02)

### Bug Fixes

* allow retries and disable ssl to co-exist ([#154](#154)) ([b16fe8d](b16fe8d))
@padamstx
Copy link
Member Author

padamstx commented Feb 2, 2022

🎉 This PR is included in version 5.9.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants