plugin/grpc: close clients on shutdown (#8582)

This PR closes from the plugin shutdown hook

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang
2026-09-29 01:19:28 -07:00
committed by GitHub
parent 594d6c9121
commit d821a74af8
4 changed files with 77 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ func setup(c *caddy.Controller) error {
g.Next = next // Set the Next field, so the plugin chaining works.
return g
})
c.OnShutdown(g.OnShutdown)
return nil
}