mirror of
https://github.com/cloudflare/cloudflared.git
synced 2026-10-12 02:12:14 +00:00
chore: Remove stale metrics timeout TODO
Removes the stale metrics timeout TODO. Go 1.22+ already adjusts pprof write deadlines for the requested profile duration. Addresses: [#1733](https://github.com/cloudflare/cloudflared/issues/1733)
This commit is contained in:
committed by
João "Pisco" Fernandes
parent
0355484d9b
commit
4dd589fedd
@@ -149,8 +149,6 @@ func ServeMetrics(
|
||||
var wg sync.WaitGroup
|
||||
// Metrics port is privileged, so no need for further access control
|
||||
trace.AuthRequest = func(*http.Request) (bool, bool) { return true, true }
|
||||
// TODO: parameterize ReadTimeout and WriteTimeout. The maximum time we can
|
||||
// profile CPU usage depends on WriteTimeout
|
||||
h := newMetricsHandler(config, log)
|
||||
server := &http.Server{
|
||||
ReadTimeout: 10 * time.Second,
|
||||
|
||||
Reference in New Issue
Block a user