![]() |
![]()
| ![]() |
![]()
NAMECatalyst::Engine::HTTP::Prefork - High-performance pre-forking Catalyst engine SYNOPISCATALYST_ENGINE='HTTP::Prefork' script/yourapp_server.pl DESCRIPTIONThis 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. RESTART SUPPORTThis engine supports the same restart options as Catalyst::Engine::HTTP. The server may also be restarted by sending it a HUP signal. HTTP/1.1 supportThis engine fully supports the following HTTP/1.1 features: Chunked RequestsChunked body data is handled transparently by HTTP::Body. Chunked ResponsesBy 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. Pipelined RequestsBrowsers sending any number of pipelined requests will be handled properly. Keep-AliveKeep-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). CUSTOMIZATIONAdditional options may be passed to the engine by modifying yourapp_server.pl to send additional items to the run() method. min_serversThe minimum number of servers to keep running. Defaults to 5. min_spare_serversThe 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. max_spare_serversThe maximum number of servers to have waiting for requests. Defaults to 10. max_serversThe maximum number of child servers to start. Defaults to 50. max_requestsRestart 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. restart_gracefulThis 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. pidfileThis 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 backgroundThis option passes through to Net::Server and also sets the 'setsid' option to true. AUTHORAndy Grundman, <andy@hybridized.org> COPYRIGHTThis program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
|