instance method process!

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

process!(provider = FCGI)

No documentation comment.

Parameters

provider opt = FCGI
Source
# File railties/lib/fcgi_handler.rb, line 47
  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

Defined in railties/lib/fcgi_handler.rb line 47 · View on GitHub · Improve this page · Find usages on GitHub

Defined in RailsFCGIHandler

Type at least 2 characters to search.

↑↓ navigate · open · esc close