Skip to content

Commit

Permalink
buildkitd: fix debug handler listener
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 7f8eedc)
  • Loading branch information
tonistiigi authored and crazy-max committed Nov 29, 2023
1 parent f83447b commit 646e71a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/buildkitd/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ func setupDebugHandlers(addr string) error {
ReadHeaderTimeout: time.Minute,
}
bklog.L.Debugf("debug handlers listening at %s", addr)
go server.ListenAndServe()
go func() {
if err := server.Serve(l); err != nil {
bklog.L.Errorf("failed to serve debug handlers: %v", err)
}
}()
return nil
}

0 comments on commit 646e71a

Please sign in to comment.