Skip to content

Commit 646e71a

Browse files
tonistiigicrazy-max
authored andcommitted
buildkitd: fix debug handler listener
Signed-off-by: Tonis Tiigi <[email protected]> (cherry picked from commit 7f8eedc)
1 parent f83447b commit 646e71a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmd/buildkitd/debug.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ func setupDebugHandlers(addr string) error {
4343
ReadHeaderTimeout: time.Minute,
4444
}
4545
bklog.L.Debugf("debug handlers listening at %s", addr)
46-
go server.ListenAndServe()
46+
go func() {
47+
if err := server.Serve(l); err != nil {
48+
bklog.L.Errorf("failed to serve debug handlers: %v", err)
49+
}
50+
}()
4751
return nil
4852
}

0 commit comments

Comments
 (0)