From 2c83dac5d47195b7589a9e879598d00c00f1b302 Mon Sep 17 00:00:00 2001 From: zeripath Date: Tue, 10 Dec 2019 12:23:26 +0000 Subject: FCGI: Allow FCGI over unix sockets (#9298) * FCGI: Allow FCGI over unix sockets * fixup! FCGI: Allow FCGI over unix sockets --- cmd/web_graceful.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/web_graceful.go') diff --git a/cmd/web_graceful.go b/cmd/web_graceful.go index e303f71510..5f8b85b390 100644 --- a/cmd/web_graceful.go +++ b/cmd/web_graceful.go @@ -37,9 +37,9 @@ func NoMainListener() { graceful.Manager.InformCleanup() } -func runFCGI(listenAddr string, m http.Handler) error { +func runFCGI(network, listenAddr string, m http.Handler) error { // This needs to handle stdin as fcgi point - fcgiServer := graceful.NewServer("tcp", listenAddr) + fcgiServer := graceful.NewServer(network, listenAddr) err := fcgiServer.ListenAndServe(func(listener net.Listener) error { return fcgi.Serve(listener, m) -- cgit v1.2.3