Ticket #596 (closed defect: fixed)

Opened 2 years ago

Last modified 3 months ago

invalid fcgi load-balancing configuration doesnt give error or warning

Reported by: bodhi@theplant.jp Assigned to: jan
Priority: low Milestone:
Component: mod_fastcgi Version: 1.4.11
Severity: minor Keywords:
Cc: Blocking:
Need Feedback: 0

Description

When configuring fastcgi, if you use a configuration that doesnt match http://lighttpd.net/documentation/fastcgi.html lighty doesnt give any syntax errors or anything, but the load-balancing stops working (it only uses the first listed host in the configuration)

eg when i use:

fastcgi.server = ( ".fcgi" =>
                               ( "turbine-01-7000" => ( "host" => "127.0.0.1", "port" => 7000 ) ),
                               ( "turbine-01-7001" => ( "host" => "127.0.0.1", "port" => 7001 ) )
                         )

according to the config, the "turbine-01-700x =>" entries shouldn't be there, but it still (sort of) works, just ignoring the port 7001 entry. When it is removed:

fastcgi.server = ( ".fcgi" =>
                               ( ( "host" => "127.0.0.1", "port" => 7000 ),
                                 ( "host" => "127.0.0.1", "port" => 7001 ) )
                         )

load-balancing starts working properly, and lighty picks up on the port 7001 entry. It's not a major problem, but can trip people up and is difficult to track down...

Attachments

Change History

04/25/2008 09:22:37 AM changed by stbuehler

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

I tested it with current version and it works, so i think it got fixed.


Add/Change #596 (invalid fcgi load-balancing configuration doesnt give error or warning)




Change Properties
Action