From 3f366a30f3b09a599f7deb94b7a8c8d3fb164a62 Mon Sep 17 00:00:00 2001 From: Foivos Filippopoulos Date: Thu, 5 Sep 2024 09:09:12 +0100 Subject: [PATCH] Change pprof listen port to 6060 (#213) This is what the examples are using in the doc: https://pkg.go.dev/net/http/pprof so it could be the most expected way to use this --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 673e911..bda1258 100644 --- a/main.go +++ b/main.go @@ -28,7 +28,7 @@ var ( flagMaxRequestsPerSecond = flag.Float64("max-requests-per-second", 500.0, "maximum allowed requests to the server per second") flagMaxPeerRequestsPerSecond = flag.Float64("max-peer-requests-per-second", 50.0, "maximum allowed requests from a peer per second") flagMetricsListenPort = flag.String("metrics-listen-port", "8080", "Listen port to serve prometheus metrics") - flagPprofListenAddress = flag.String("pprof-listen-address", "127.0.0.1:8081", "Listen address to expose pprof endpoints") + flagPprofListenAddress = flag.String("pprof-listen-address", "127.0.0.1:6060", "Listen address to expose pprof endpoints") bearerRe = regexp.MustCompile(`[A-Z|a-z0-9\-\._~\+\/]+=*`) )