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>
  • Loading branch information
tonistiigi committed Oct 20, 2023
1 parent 8dfc926 commit 7f8eedc
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 7f8eedc

Please sign in to comment.