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

pollers: accounting for dropped connections #20670

Merged
merged 1 commit into from
Mar 1, 2023
Merged

Conversation

tombuildsstuff
Copy link
Contributor

It's possible that the connection can be dropped whilst polling, if this is the case then a nil *http.HttpResponse will be returned (since there's no response) - as such we need to use the response.WasNotFound (and similar) methods when checking the HTTP Status Code which take dropped connections into account

It's possible that the connection can be dropped whilst polling, if this is the case then
a nil *http.HttpResponse will be returned (since there's no response) - as such we need
to use the `response.WasNotFound` (and similar) methods when checking the HTTP Status Code
which take dropped connections into account
Copy link
Member

@jackofallops jackofallops left a comment

Choose a reason for hiding this comment

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

Thank @tombuildsstuff - One minor comment, otherwise LGTM 👍

"testing"

"github.com/hashicorp/go-azure-helpers/lang/response"

Copy link
Member

Choose a reason for hiding this comment

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

goimports?

@jackofallops jackofallops merged commit 37980d9 into main Mar 1, 2023
@jackofallops jackofallops deleted the b/nil-http-responses branch March 1, 2023 10:23
@github-actions github-actions bot added this to the v3.46.0 milestone Mar 1, 2023
tombuildsstuff added a commit that referenced this pull request Mar 1, 2023
@github-actions
Copy link

github-actions bot commented Mar 6, 2023

This functionality has been released in v3.46.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

github-actions bot commented Apr 6, 2023

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants