Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new -pprof on flag to explictly allow pprof, off by default. #845

Merged
merged 4 commits into from
Sep 29, 2023

Conversation

ldemailly
Copy link
Member

@ldemailly ldemailly commented Sep 29, 2023

Fixes #844. also refactored UI config so httpoptions isn't called twice (and thus not logging twice in log verbose)

Screenshot 2023-09-28 at 5 06 47 PM
17:06:04.356 r1 [VRB] uihandler.go:669> Not serving pprof endpoint.
vs
17:06:17.401 r1 [WRN] http_server.go:489> pprof endpoints enabled on /debug/pprof/*

Note that while this removes /debug/pprof from the default UI it doesn't make /fortio safe to expose outside of restricted networks.

…#844. also refactored UI config so httpoptions isn't called twice (and thus not logging twice in log verbose)
@codecov
Copy link

codecov bot commented Sep 29, 2023

Codecov Report

All modified lines are covered by tests ✅

Files Coverage Δ
fhttp/http_server.go 81.7% <100.0%> (+<0.1%) ⬆️

📢 Thoughts on this report? Let us know!.

@ldemailly ldemailly merged commit 058ac0f into master Sep 29, 2023
@ldemailly ldemailly deleted the pprof_off branch September 29, 2023 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

turn off pprof by default on UI/echo
2 participants