From e65b97f55b6c5da8859fbd5e5b397cf089bf7716 Mon Sep 17 00:00:00 2001 From: Sam Ottenhoff Date: Wed, 20 Mar 2024 13:13:35 -0400 Subject: reverseproxy: configurable active health_passes and health_fails (#6154) * reverseproxy: active health check allows configurable health_passes and health_fails * Need to reset counters after recovery * rename methods to be more clear that these are coming from active health checks * do not export methods --- caddytest/integration/reverseproxy_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'caddytest') diff --git a/caddytest/integration/reverseproxy_test.go b/caddytest/integration/reverseproxy_test.go index 0beb71afc..cbfe8433b 100644 --- a/caddytest/integration/reverseproxy_test.go +++ b/caddytest/integration/reverseproxy_test.go @@ -350,6 +350,8 @@ func TestReverseProxyHealthCheck(t *testing.T) { health_port 2021 health_interval 10ms health_timeout 100ms + health_passes 1 + health_fails 1 } } `, "caddyfile") -- cgit v1.2.3