mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2025-12-22 09:29:50 +00:00
FailoverApp.HealthCheck: updated code to catch correct exception.
This commit is contained in:
@@ -430,7 +430,7 @@ namespace Failover
|
||||
|
||||
return new HealthCheckResponse(HealthStatus.Failed, "Received HTTP status code: " + (int)httpResponse.StatusCode + " " + httpResponse.StatusCode.ToString() + "; URL: " + url.AbsoluteUri);
|
||||
}
|
||||
catch (TaskCanceledException ex)
|
||||
catch (OperationCanceledException ex)
|
||||
{
|
||||
lastReason = "Connection timed out.";
|
||||
lastException = ex;
|
||||
|
||||
Reference in New Issue
Block a user