caddy/modules/caddyhttp/caddyauth
Y.Horie 8d3a1b8bcb
caddyauth: Use singleflight for basic auth (#5344)
* caddyauth: Add singleflight for basic auth

* Fixes #5338
* it occurred the thunder herd problem like this https://medium.com/@mhrlife/avoid-duplicate-requests-while-filling-cache-98c687879f59

* Update modules/caddyhttp/caddyauth/basicauth.go

Fix comment

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

---------

Co-authored-by: Francis Lavoie <lavofr@gmail.com>
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
2023-02-06 18:29:03 +00:00
..
basicauth.go caddyauth: Use singleflight for basic auth (#5344) 2023-02-06 18:29:03 +00:00
caddyauth.go core: Variadic Context.Logger(); soft deprecation 2022-09-16 16:55:36 -06:00
caddyfile.go reverseproxy: Mask the WS close message when we're the client (#5199) 2022-11-14 09:38:02 -07:00
command.go caddyauth: Speed up basicauth provision, deprecate scrypt (#4720) 2022-09-05 13:32:58 -06:00
hashes.go core: Variadic Context.Logger(); soft deprecation 2022-09-16 16:55:36 -06:00