Implement issue #6296 passing FDs / socket activation#6573
Implement issue #6296 passing FDs / socket activation#6573mholt merged 55 commits intocaddyserver:masterfrom
Conversation
|
@wplinge @mholt this was an additional feature, but it is compatible with every existing Caddyfile and config JSON. I also added a clearer error message for the case in the log. |
|
@MayCXC Thanks, it works perfectly for me with that update. I'd noticed only one |
great, yeah what happened was only that last |
|
Well, impressive. This change is too big for me to fully understand and thoroughly review. I appreciate the field testing, and think we could benefit from more of it. So let's go ahead and merge this, if you're ready, so it goes in Caddy 2.9 beta releases. |
|
thanks, and yes I'm ready now. I will be one of the beta testers with production traffic :) |
|
Unfortunately I think this broke integration tests. The annoying thing is the integration tests are horribly flaky, but with this commit on Specifically, this is the failing test: |
investigating this, it looks like I broke so next I will debug |
|
the above config with |
|
fix is here: #6599 |
third time's the charm ☘️
example Caddyfile:
as seen above, two reserved networks
fdandfdgramhave been added.fd/3creates a FileListener from fd 3,fdgram/4creates a FilePacketConn from fd 4. this simplifies configuration compared to #6543 , but the "actual" host addresses are no longer visible. so, for health checks and the admin interface, fds are treated similarly to unix sockets.this is a good thing i think, fds should be decoupled from the addresses they are bound to. separate config options can be added to override the origin address for health checks / the admin interface if needed.
link to issue: #6296