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 timeout to HTTP clients #1331

Merged
merged 1 commit into from
Dec 14, 2020
Merged

Adds timeout to HTTP clients #1331

merged 1 commit into from
Dec 14, 2020

Conversation

couralex6
Copy link
Contributor

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.

Copy link
Contributor

@jayanthvn jayanthvn left a comment

Choose a reason for hiding this comment

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

Thank you!

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