Bug #451
closedUse disable-timeout for UNIX-socket FCGI if externally managed
Description
I like to preconfigure lighttpd with knowledge of several FCGI backend processes, and then rely on its load-balancing behaviour to detect which of those processes are available. This allows me to manually start/stop any number of FCGI backends without bouncing lighttpd.
With UNIX sockets, a missing socket file is like a TCP connection error, so when Lighttpd finds that a socket file is missing, I would expect it to wait "disable-time" before looking for the file again.
What actually happens is that Lighttpd spins without a delay, filling up the disk rather quickly with its error log file. I would be very happy if this "hard" error condition could be changed to a "soft" error.
For reference, my configuration looks something like this:
fastcgi.server = ( ".fcgi" => ("fcgi-01" => ( "socket" => "../fcgi-01/fcgi.sock", "disable-time" => 5 ), "fcgi-02" => ( "socket" => "../fcgi-02/fcgi.sock", "disable-time" => 5 ), "fcgi-03" => ( "socket" => "../fcgi-03/fcgi.sock", "disable-time" => 5 ), "fcgi-04" => ( "socket" => "../fcgi-04/fcgi.sock", "disable-time" => 5 ), "fcgi-05" => ( "socket" => "../fcgi-05/fcgi.sock", "disable-time" => 5 ) ))
-- stephen_purcell
Updated by Anonymous about 19 years ago
Updated by gstrauss about 9 years ago
- Description updated (diff)
- Status changed from New to Fixed
Fixed a while ago.
commit 8004ebbddf1f209ee36dae9666dcedd6c08067bf Author: Stefan Bühler <stbuehler@web.de> Date: Thu Jul 23 21:42:59 2009 +0000 Use disable-time in fastcgi for all disables after errors, default is 1sec (fixes #2040) git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2597 152afb58-edef-0310-8abb-c4023f1b3aa9
commit b9db35f5ff3b92db433ec15f433416f7b4099f48 Author: Stefan Bühler <stbuehler@web.de> Date: Sun Oct 11 19:08:38 2009 +0000 mod_fastcgi: don't disable backend if disable-time is 0 (fixes #1825) git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2632 152afb58-edef-0310-8abb-c4023f1b3aa9
commit fd13e944278ff86a2c9d1b916a17399bb65db5e8 Author: Stefan Bühler <stbuehler@web.de> Date: Sun Oct 11 21:54:50 2009 +0000 mod_fastcgi: restart local procs immediately after they terminated, fix local procs handling git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2639 152afb58-edef-0310-8abb-c4023f1b3aa9
Also available in: Atom