.\" This man page is automatically generated using .\" kayadoc2man from the Kaya development tools and the -xmldocs compile .\" option. Editing it directly is not encouraged. .\" It is under the same license as the source .k file that it was .\" generated from. .TH "SCGI.SCGI" "3kaya" "August 2014" "Kaya" "Kaya module reference" .SH "NAME" SCGI::SCGI \- SCGI configuration .SH "SYNOPSIS" .B SCGI::SCGI< \fI\fP .B > .IP "" -2 = .BI "SCGI(" "Int port,Int startservers,Int minspareservers,Int maxspareservers,Int maxservers,Int maxbacklog,Int maxchildpages" ")" .SH "DESCRIPTION" .PP This data type describes the configuration of an SCGI server. The \fBscgiconfig \fP function can be used to set the configuration, as well as performing any initialisation that should be specific to the entire server group (generally, unless only select queries are needed, database connections should be initialised in the per-process \fBwebconfig \fP function). .IP "" -2 - \fBport \fP : The TCP port to listen on .IP "" -2 - \fBstartservers \fP : The number of initial sub-server processes .IP "" -2 - \fBminspareservers \fP : The minimum number of spare sub-server processes to have .IP "" -2 - \fBmaxspareservers \fP : The maximum number of spare sub-server processes to have .IP "" -2 - \fBmaxservers \fP : The maximum number of spare server processes to have. If there are more simultaneous connections than this, then additional connections will be held in the backlog. This number should be set as high as possible, but not so high that physical memory runs out trying to serve them all. .IP "" -2 - \fBmaxbacklog \fP : The maximum backlog of unaccepted connections to allow. Additional connections once the backlog is full will be rejected. .IP "" -2 - \fBmaxchildpages \fP : The maximum number of pages a single sub-server can handle. Once a sub-server has served this many pages it will be killed and restarted, which may keep memory usage down. .PP The default values, if no \fBscgiconfig \fP function is present, are \fBSCGI(7597,2,2,4,10,100,10) \fP .SH "AUTHORS" Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/ .SH LICENSE The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.