Ticket #534 (closed defect: fixed)

Opened 2 years ago

Last modified 5 months ago

lighttpd does not restart dead fastcgi backends

Reported by: me@aaronsw.com Assigned to: jan
Priority: normal Milestone:
Component: core Version: 1.4.10
Severity: major Keywords:
Cc: Blocking:
Need Feedback: 0

Description

If lighttpd is set up to start up a FastCGI backend and use it to serve requests, it works fine until the backend crashes or is killed, at which point it starts issuing errors like:

2006-02-20 20:29:05: (mod_fastcgi.c.1561) connect failed: 249 Connection refused 61 0 /tmp/python-infogami-lighttpd.socket-0 

on every request. Instead of issuing errors, it should restart the backend.

For example, I have a simple FastCGI backend that prints "hello world" called foo.py:

server.modules = ("mod_fastcgi")
server.document-root = "/home/aaronsw/funnybug/"
server.port = 8081
fastcgi.server = (
  "/foo.py" => (
     "main" => (
       "socket" => "/tmp/bugfinder.socket",
       "bin-path" => "/home/aaronsw/funnybug/foo.py",
       "max-procs" => 1     )
   ))

When I start up the server with this config, it starts up a FastCGI backend. If I kill the FastCGI backend, my entire site dies. I'm pretty sure this didn't happen before 1.4.9.

Attachments

Change History

04/19/2006 04:35:05 PM changed by mmarshall

I just wanted to confirm this. I have been using lighttpd+factcgi on my development server, and started having database problems. Come to find out, my /var partition had been filled up with a 2.4GB error.log

The errors start on 2006-02-23, which I assume is when I upgraded lighttpd.

02/20/2008 05:57:56 PM changed by stbuehler

  • status changed from new to closed.
  • resolution set to fixed.
  • blocking changed.
  • pending changed.

Works for me in current version, so i think this got fixed.


Add/Change #534 (lighttpd does not restart dead fastcgi backends)




Change Properties
Action