We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e50d4f1 commit 5363459Copy full SHA for 5363459
proxy/proxy.go
@@ -63,14 +63,15 @@ func (p *Server) Start() error {
63
64
p.logger.Info("Starting HTTP proxy with TLS termination", "port", p.httpPort)
65
66
+ p.pprofServer = &http.Server{
67
+ Addr: ":6060", // pprof port
68
+ Handler: http.DefaultServeMux,
69
+ }
70
+
71
// Start pprof server on a different port
72
go func() {
- p.pprofServer = &http.Server{
- Addr: ":6060", // pprof port
- Handler: http.DefaultServeMux,
- }
-
73
p.logger.Info("Starting pprof server", "port", 6060)
74
75
if err := p.pprofServer.ListenAndServe(); err != nil && errors.Is(err, http.ErrServerClosed) {
76
p.logger.Error("pprof server error", "error", err)
77
}
0 commit comments