Sha256: 279807ef36d29d2a45df2bda45bf1db3a882c18652bad6f58fbdbaf1bc0ce39d

Contents?: true

Size: 724 Bytes

Versions: 3

Compression:

Stored size: 724 Bytes

Contents

#          Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com
# All files in this distribution are subject to the terms of the Ruby license.

module Ramaze
  Global.test_connections = false

  module Adapter
    # Our Fcgi adapter acts as wrapper for the Rack::Handler::FastCGI.
    class Fcgi < Base
      class << self

        # start FastCGI in a new thread, host and port parameter are only taken
        # to make it compatible with other adapters but have no influence and
        # can be omitted
        def run_server host = nil, ports = nil
          Thread.new do
            Thread.current[:task] = :cgi
            Rack::Handler::FastCGI.run(self)
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
clivecrous-ramaze-0.3.9.5 lib/ramaze/adapter/fcgi.rb
ramaze-0.3.9 lib/ramaze/adapter/fcgi.rb
ramaze-0.3.9.1 lib/ramaze/adapter/fcgi.rb