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

[Network healthcheck] respect timeouts in underlying operations #571 #616

Merged
merged 2 commits into from
Sep 4, 2020

Conversation

CarlosLanderas
Copy link
Contributor

What this PR does / why we need it: #571

Network healthchecks don't respect timeouts configured in healthchecks registrations

Which issue(s) this PR fixes: #571

Please reference the issue this PR will close: #[issue number]

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Unit tests passing
  • End-to-end tests passing

@@ -25,6 +25,11 @@ public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, Canc
{
var connectionInfo = new ConnectionInfo(item.Host, item.Port, item.UserName, item.AuthenticationMethods.ToArray());

if(context.Registration.Timeout > TimeSpan.Zero)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This healthcheck has no async operation but can use a TimeSpan timeout in the ConnectionInfo class

@CarlosLanderas CarlosLanderas merged commit 90ca96e into master Sep 4, 2020
@unaizorrilla unaizorrilla deleted the network-healthcheck-respect-timeouts branch November 22, 2020 16:22
@sungam3r sungam3r mentioned this pull request Jul 30, 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.

None yet

1 participant