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: component download #1394

Merged
merged 2 commits into from
Sep 29, 2023
Merged

fix: component download #1394

merged 2 commits into from
Sep 29, 2023

Conversation

jon-stewart
Copy link
Contributor

@jon-stewart jon-stewart commented Sep 29, 2023

Summary

The line io.Copy(file, resp.Body) streams HTTP response data to the file, at this stage we have an active HTTP connection and a timeout will interrupt us there.

This change groups the client.Get with the io.Copy. Hardcoding component timeout values.

How did you test this change?

local unit testing

@jon-stewart jon-stewart self-assigned this Sep 29, 2023
@jon-stewart jon-stewart requested a review from a team as a code owner September 29, 2023 11:37
@jon-stewart jon-stewart merged commit 19e46b5 into main Sep 29, 2023
1 check passed
@jon-stewart jon-stewart deleted the jon-stewart/component-download branch September 29, 2023 11:58
@lacework-releng lacework-releng mentioned this pull request Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants