-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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 panic in proxyDialer #36726
Fix panic in proxyDialer #36726
Conversation
Incase of error, the response from net/HTTP ReadResponse is always nil and no need to close the Body. Signed-off-by: T K Chandra Hasan <[email protected]>
Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement Learn more about why HashiCorp requires a CLA and what the CLA includes Have you signed the CLA already but the status is still pending? Recheck it. |
Changelog WarningCurrently this PR would target a v1.12 release. Please add a changelog entry for in the .changes/v1.12 folder, or discuss which release you'd like to target with your reviewer. If you believe this change does not need a changelog entry, please add the 'no-changelog-needed' label. |
Hi @hasan4791, was there an issue filed related to this fix? How did you run into this issue? Reproduction steps? Thanks. |
I was using proxy for the ssh connection and it looks like once the instance is created, it takes some time for the ssh connection to be established and while it retries, hitting this panic. If i run the apply after the ssh is up, no issues observed. If required I can create an issue as it was clearly a bug but needs a little change. |
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.
Thanks @crw and @hasan4791, we can take this without any further examples. That line is simply incorrect and shouldn't have passed initial review.
Thank you @jbardin |
Incase of error, the response from net/HTTP ReadResponse is always nil and no need to close the Body.
Target Release
1.12.x
CHANGELOG entry