caddy/modules
Y.Horie 769ed7e4a3
events: skip dispatch setup when nothing is subscribed (#7997)
App.Emit does a fair amount of work before it can discover that no handler
is bound: it derives three loggers, one of which formats the event's UUID
even when debug logging is off, and registers a replacer callback. Only
then does it reach "shortcut if event not bound at all".

Some events are emitted on every TLS handshake -- CertMagic emits
tls_get_certificate as the first statement of GetCertificateWithContext --
so on a server with no events configuration that work runs per handshake
and is discarded every time.

Return early when neither the event's name nor the catch-all is bound and
debug logging is off, which are exactly the conditions under which nothing
can observe the event. caddy.NewEvent still runs, so the returned Event is
unchanged for callers.

Benchmarks are included; measurements are in the pull request.
2026-09-09 13:33:54 +10:00
..
caddyevents events: skip dispatch setup when nothing is subscribed (#7997) 2026-09-09 13:33:54 +10:00
caddyfs
caddyhttp caddyhttp: demote Alt-Svc ErrNoAltSvcPort to debug level (#8000) 2026-09-08 13:26:18 +10:00
caddypki pki: Handle error immediately after reading root from disk (#7896) 2026-07-19 23:59:46 -04:00
caddytls caddytls: synchronize storage cleaner with TLS.Stop via context and WaitGroup (#7954) 2026-09-05 07:37:57 -06:00
filestorage
internal/network network_proxy: reject proxy URLs that resolve to a port with no host (#7922) 2026-08-10 15:58:43 +10:00
logging fix: close resources on error paths (#7940) 2026-08-16 21:02:39 +10:00
metrics
standard