Hold Go's server privately in waf.Server and rproxy.Server (closes #437)
check / check (push) Failing after 1m42s

Neither Server embeds *http.Server any more. Each holds it as a private
field, is its handler, and has Serve, Shutdown, Close and ServeHTTP.
sww's serve hook takes the new daemonServer interface of those first
three, and fx provides each Server as it.

Model: opus-5-5
This commit is contained in:
sneak committed 2026-11-20 00:33:14 +00:00
1 parent cc77435f2a
commit ad7ea4608b
15 files changed
+134 -54

No files matched your search

+2 -1
View File
@@ -109,7 +109,8 @@ type CoreRuleSetInspector interface {
// Server is the server waf runs.
type Server struct {
*http.Server
httpServer *http.Server
h *handler
}
// newHandler returns the handler with what every request shares, the parts