Can I write a plugin to handle connection error?

I want to write a plugin to delete unreachable targets from upstream. But there is no handler to handle connection error. The log() function can’t be triggered when I got connection refused. So is there a way to handle error in plugin?

No, here is no handler for that.

That said: checkout the new 0.12 RC, which includes healthchecks

Thank you. Is there a documentation about 0.12RC’s new feature? I can’t find healthchecks in the 0.12.x