-
Notifications
You must be signed in to change notification settings - Fork 244
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
Update default Getters with known defaults #363
Conversation
* By default XTerrformGet header support should be disable; clients needing supporting this header should overwrite the default getters with a custom HttpGetter * Add default timeouts for HTTP Read Requests; including HEAD requests
Netrc: true, | ||
Netrc: true, | ||
XTerraformGetDisabled: true, | ||
HeadFirstTimeout: 10 * time.Second, |
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.
🤔 Maybe we should go with DoNotCheckHeadFirst
, to avoid the initial HEAD
request altogether.
HeadFirstTimeout: 10 * time.Second, | |
DoNotCheckHeadFirst: true, |
What do you think?
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.
Packer uses the default Getter settings with a few additional Getters. I updated them to match what we plan to use in Packer. That said, I think Packer could take advantage of the Range header. So I opted for the HeadFirstTimeout over the disabling it entirely. Does that sound reasonable to you?
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.
Given the need of the changes. I went ahead and merged as is. If after working through Packer further we find we can disable entirely. We can revisit. But sticking with this default for now.
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.
👍🏼 LGTM!
By default XTerrformGet header support should be disable; clients
needing supporting this header should overwrite the default getters
with a custom HttpGetter
Add default timeouts for HTTP Read Requests; including HEAD requests