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

Adds http timeout to aws sessions #1370

Merged
merged 1 commit into from
Feb 4, 2021
Merged

Conversation

couralex6
Copy link
Contributor

@couralex6 couralex6 commented Jan 30, 2021

This pr manually imports the changes brought by PR #1331

What type of PR is this?
Bug fix.

Which issue does this PR fix:
#1256

What does this PR do / Why do we need it:
Some customers experienced a stuck go routine caused by stuck http requests not timing out.

Testing done on this change:
Manually tested the two following scenarios:

  • Setting the env var HTTP_TIMEOUT in the yaml and logging the set value.
  • Not setting an env var and verifying that the default value of 5 sec is being used for the HTTP client.

Automation added to e2e:

None

Will this break upgrades or downgrades. Has updating a running cluster been tested?:

Will not break downgrades or upgrades.

Does this change require updates to the CNI daemonset config files to work?:

Only if we decide to include the HTTP_TIMEOUT var in the config file.
Does this PR introduce any user-facing change?:

No


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

pkg/awsutils/awssession/session.go Outdated Show resolved Hide resolved
pkg/awsutils/awssession/session.go Outdated Show resolved Hide resolved
pkg/awsutils/awssession/session.go Outdated Show resolved Hide resolved
pkg/ec2wrapper/ec2wrapper.go Outdated Show resolved Hide resolved
pkg/publisher/publisher.go Outdated Show resolved Hide resolved
pkg/ec2wrapper/ec2wrapper.go Show resolved Hide resolved
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.

3 participants