A different Error 503 problem

I am new to LSWS. I installed it last night after experiencing performance issues issues with Lighttpd and Ruby on Rails. All of my sites work except http://community.lanfusion.com, a social networking site built in RoR. http://community.lanfusion.com was working fine with Lighttpd and works with Webbrick.

The difference between litespeed and others are the stripped environment variables and one ruby process fork children processes to handle all the requests.
The children process will inherit all file handles from parent. I don't know exactly what is DRb, but looks like it need to connect to a local TCP port for some services, it could be a problem when children inherit the file handle for that connection. So, you need to find a way to close the DRb connection established during initializing Rails framework before parent fork the child process.

Like what we did for the ActiveRecord connections in RailsRunner.rb

Code:

#Close all DB connections established during initialization
ActiveRecord::Base.clear_active_connections! if defined?(ActiveRecord::Base)