Skip to content

http: Make logger first, before TLS provisioning#7198

Merged
mholt merged 1 commit intomasterfrom
fix-http-stop
Aug 22, 2025
Merged

http: Make logger first, before TLS provisioning#7198
mholt merged 1 commit intomasterfrom
fix-http-stop

Conversation

@francislavoie
Copy link
Copy Markdown
Member

Fix #7197

I think the logger being made after TLS provisioning meant that if TLS provisioning fails and Stop() is called, there's no logger to use in Stop(), so we get a nil reference panic.

@francislavoie francislavoie added the bug 🐞 Something isn't working label Aug 22, 2025
@francislavoie francislavoie added this to the v2.10.2 milestone Aug 22, 2025
@mholt mholt merged commit 16fe83c into master Aug 22, 2025
26 checks passed
@mholt mholt deleted the fix-http-stop branch August 22, 2025 20:24
mohammed90 pushed a commit to cedricziel/caddy that referenced this pull request Aug 29, 2025
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.

caddy v2.10.1: panic in caddyhttp.App.Stop due to nil logger after failed provisioning

2 participants