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

caddyauth: Add singleflight for basic auth #5344

Merged
merged 3 commits into from
Feb 6, 2023

Conversation

@francislavoie
Copy link
Member

Oooh, that's really cool! I didn't know Go had a build-in package to deal with this particular problem.

Fix comment

Co-authored-by: Francis Lavoie <lavofr@gmail.com>
Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also learned something new -- thanks for the patch! I might have to use this in CertMagic. I looked at the source for singleflight and it's doing basically the same thing as I hand-rolled in CertMagic.

@mholt mholt enabled auto-merge (squash) February 6, 2023 18:20
@mholt
Copy link
Member

mholt commented Feb 6, 2023

I'm not sure why the lint keeps failing on this one.

@mholt mholt merged commit 8d3a1b8 into caddyserver:master Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Basic Auth causes Caddy to use an extraordinary amount of CPU while viewing the NetData Dashboard
3 participants