Class: Nitro::FastCGI

Inherits:
Object
  • Object
show all
Defined in:
lib/nitro/adapter/fastcgi.rb

Overview

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 can’t 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.

– gmosx: I always thought that the concept of FastCGI is stupid! Why don’t you use a proxy setup? (For example Apache + Mongrel) ++

Class Method Summary collapse

Class Method Details

.start(server) ⇒ Object



37
38
39
40
41
42
43
44
# File 'lib/nitro/adapter/fastcgi.rb', line 37

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