protected Method

RailsFCGIHandler.process_each_request!(provider)

There's no documentation for this item.

Source Code

# File fcgi_handler.rb, line 139
def process_each_request!(provider)
  cgi = nil
  provider.each_cgi do |cgi|
    with_signal_handler 'USR1' do
      process_request(cgi)
    end

    case when_ready
      when :reload
        reload!
      when :restart
        close_connection(cgi)
        restart!
      when :exit
        close_connection(cgi)
        break
      when :breakpoint
        close_connection(cgi)
        breakpoint!
    end

    gc_countdown
  end
rescue SignalException => signal
  raise unless signal.message == 'SIGUSR1'
  close_connection(cgi) if cgi
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.