GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Catalyst::Engine::HTTP::Prefork(3) User Contributed Perl Documentation Catalyst::Engine::HTTP::Prefork(3)

Catalyst::Engine::HTTP::Prefork - High-performance pre-forking Catalyst engine

    CATALYST_ENGINE='HTTP::Prefork' script/yourapp_server.pl

This engine is designed to run as a standalone Catalyst server, without requiring the use of another web server. It's goals are high-performance, HTTP/1.1 compliance, and robustness. It is also suitable for use as a faster development server with support for automatic restarting.

This engine is designed to replace the Catalyst::Engine::HTTP::POE engine, which is now deprecated.

This engine supports the same restart options as Catalyst::Engine::HTTP. The server may also be restarted by sending it a HUP signal.

This engine fully supports the following HTTP/1.1 features:

Chunked body data is handled transparently by HTTP::Body.

By setting the Transfer-Encoding header to 'chunked', you can indicate you would like the response to be sent to the client as a chunked response. Also, any responses without a content-length will be sent chunked.

Browsers sending any number of pipelined requests will be handled properly.

Keep-alive is supported for both HTTP/1.1 (by default) and HTTP/1.0 (if a Connection: keep-alive header is present in the request).

Additional options may be passed to the engine by modifying yourapp_server.pl to send additional items to the run() method.

The minimum number of servers to keep running. Defaults to 5.

The minimum number of servers to have waiting for requests. Minimum and maximum numbers should not be set too close to each other or the server will fork and kill children too often. Defaults to 2.

The maximum number of servers to have waiting for requests. Defaults to 10.

The maximum number of child servers to start. Defaults to 50.

Restart a child after it has served this many requests. Defaults to 1000. Note that setting this value to 0 will not cause the child to serve unlimited requests. This is a limitation of Net::Server and may be fixed in a future version.

This enables Net::Server's leave_children_open_on_hup option. If set, the parent will not attempt to close child processes if the parent receives a SIGHUP. Each child will exit as soon as possible after processing the current request if any.

This passes through to Net::Server's pid_file option. If set, the pidfile is written to the path. Default is none. This file is not removed on server exit

This option passes through to Net::Server and also sets the 'setsid' option to true.

Andy Grundman, <andy@hybridized.org>

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
2009-06-12 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.