1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-03 00:45:22 +02:00

FCGI: Allow FCGI over unix sockets (#9298)

* FCGI: Allow FCGI over unix sockets

* fixup! FCGI: Allow FCGI over unix sockets
This commit is contained in:
zeripath 2019-12-10 12:23:26 +00:00 committed by Antoine GIRARD
parent 4dc3993b22
commit 2c83dac5d4
5 changed files with 22 additions and 7 deletions

View file

@ -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)