Closed Tieske closed 5 years ago
@Tieske Nice catch :)
It gave me a nasty sync issue, took me an hour and a half to track it down. I'll try a PR once I'm done with my current stuff
@Tieske Thanks for the report! Will you please create a PR with a corresponding test case for it? Thanks!
Just opened #59 which comes with a test case and additional fixes.
The
nthr
variable here; https://github.com/openresty/lua-resty-upstream-healthcheck/blob/master/lib/resty/upstream/healthcheck.lua#L322Should not be a local. It shadows the outer scope. as such the check slightly further down, where we wait for all spawned threads to finish will never run, because the outer scoped
nthr
will still benil
.