public Method

RailsFCGIHandler.process!(provider = FCGI)

There's no documentation for this item.

Source Code

# File fcgi_handler.rb, line 46
def process!(provider = FCGI)
  mark_features!

  dispatcher_log :info, 'starting'
  process_each_request provider
  dispatcher_log :info, 'stopping gracefully'

rescue Exception => error
  case error
  when SystemExit
    dispatcher_log :info, 'stopping after explicit exit'
  when SignalException
    dispatcher_error error, 'stopping after unhandled signal'
  else
    # Retry if exceptions occur more than 10 seconds apart.
    if Time.now - @last_error_on > 10
      @last_error_on = Time.now
      dispatcher_error error, 'retrying after unhandled exception'
      retry
    else
      dispatcher_error error, 'stopping after unhandled exception within 10 seconds of the last'
    end
  end
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.