internal: add internal healthchecking to prevent websocket errors

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-10-05 22:19:33 +02:00
parent 5f4a1417b2
commit 6c603cdf80
5 changed files with 53 additions and 4 deletions

View File

@ -54,7 +54,7 @@ func main() {
u, _ := url.Parse("http://localhost:8000")
g := gounicorn.NewGoUnicorn()
ws := web.NewWebServer()
ws := web.NewWebServer(g)
defer g.Kill()
defer ws.Shutdown()
go web.RunMetricsServer()