summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/reverseproxy/upstream.go
diff options
context:
space:
mode:
authorMatt Holt <mholt@users.noreply.github.com>2019-06-07 17:24:10 -0600
committerGitHub <noreply@github.com>2019-06-07 17:24:10 -0600
commit8947ae0cc1babf2ca6f8e01aa93cb13eebb3e854 (patch)
tree653f04705704c4f7757d4215fe5041dffec6d576 /modules/caddyhttp/reverseproxy/upstream.go
parent37da91cfe703bc9f14ddec007092d39610a02861 (diff)
parent878ae0002ad777826ad3f8d764628a69dd543601 (diff)
Merge pull request #1 from caddyserver/fix/goroutine-leak-healthchecker
fix goroutine leak in healthcheckers
Diffstat (limited to 'modules/caddyhttp/reverseproxy/upstream.go')
-rwxr-xr-xmodules/caddyhttp/reverseproxy/upstream.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/reverseproxy/upstream.go b/modules/caddyhttp/reverseproxy/upstream.go
index b8a0330..db03954 100755
--- a/modules/caddyhttp/reverseproxy/upstream.go
+++ b/modules/caddyhttp/reverseproxy/upstream.go
@@ -140,7 +140,7 @@ func NewLoadBalancedReverseProxy(lb *LoadBalanced, ctx caddy2.Context) error {
// TODO :- if path is empty why does this empty the entire Target?
// nu.Target.Path = uc.HealthCheckPath
- go nu.healthChecker.ScheduleChecks(nu.Target.String())
+ nu.healthChecker.ScheduleChecks(nu.Target.String())
lb.HealthCheckers = append(lb.HealthCheckers, nu.healthChecker)
us = append(us, nu)