From: Kai Krakow Date: 2008-05-09T20:03:19+09:00 Subject: Using Derrick Pallas' ruby fcgi dispatcher I am trying to use the following dispatcher in lighttpd: http://derrick.pallas.us/ruby-cgi/ Code looks fine, and first request looks fine. But subsequent requests to the dispatcher via the webbrowser do not deliver the query parameters in cgi.params - it's just empty. I have to restart lighttpd oder wait for the dispatcher to die to get correct results again. Is there something wrong with the dispatcher? Or with my code. Here's a snippet of my code which is called thru the dispatcher: --------------------- #!/usr/bin/env ruby puts cgi.header require 'yaml' require 'rubygems' require 'active_record' require 'action_mailer' ... puts cgi.params.inspect # <-- debug, it's empty on second request params = cgi.params.select { |q,| %w{system keyword udh smstext absender time client}.include? q } params = Hash[*params.flatten] --------------------- Third last line shows the problem... Any clues? Regards, Kai