SCGI (Simple Common Gateway Interface) is a stream-based protocol that is particularly simple to implement.
SCGI is the recommended implementation and should be used when available as it takes the best out of GIO asynchronous API.
The implementation uses a gio-2.0/GLib.SocketService and processes multiple requests using non-blocking I/O.
The only available parameter is
backlog which set the depth of the listen
queue when performing the
accept system call.
var scgi_server = Server.new ("scgi", backlog: 1024);
Similarly to FastCGI, Lighttpd can be used to spawn and serve SCGI processes.
server.document-root = var.CWD + "/build/examples/scgi" server.port = 3003 server.modules += ( "mod_scgi" ) scgi.server = ( "" => ( "valum" => ( "socket" => var.CWD + "/valum.sock", "bin-path" => var.CWD + "/build/examples/scgi/scgi", "check-local" => "disable", ) ) )