Sha256: b1a670ac4eeeb3084d38fe06d14633e48ca5cdf2b3851a9032385641d50bad54

Contents?: true

Size: 894 Bytes

Versions: 1

Compression:

Stored size: 894 Bytes

Contents

require 'cgi'
require 'fcgi'

require 'nitro/context'
require 'nitro/dispatcher'
require 'nitro/cgi'

require 'glue/flexob'

# Speeds things up, more comaptible with OSX.

Socket.do_not_reverse_lookup = true

# No multi-threading.

Og.thread_safe = false

module Nitro

# FastCGI Adaptor. FastCGI is a language independent, 
# scalable, open extension to CGI that provides high 
# performance without the limitations of server 
# specific APIs.
#
# === Sessions
#
# As FCGI is process based, you have cant use the default
# in-memory session store. For production web sites you should
# use the drb session store. Moreover, there is no need for 
# DB connection pooling in Og.

class FastCGI

  def self.start(server)
    FCGI.each do |cgi|
      begin
        Cgi.process(server, cgi, cgi.in, cgi.out)
        cgi.finish
      end
    end
  end

end

end

# * George Moschovitis <gm@navel.gr>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nitro-0.28.0 lib/nitro/adapter/fastcgi.rb