Thrall - a simple PSGI/Plack HTTP server which uses threads
% plackup -s Thrall --port=80 [options] your-app.psgi
Thrall is a standalone HTTP/1.0 server with keep-alive support. It uses threads instead pre-forking, so it works correctly on Windows.
In addition to the options supported by plackup, Thrall accepts following options(s).
number of worker processes (default: 10)
seconds until timeout (default: 300)
timeout for persistent connections (default: 2)
max. number of requests allowed per single persistent connection. If set to one, persistent connections are disabled (default: 1)
max. number of requests to be handled before a worker process exits (default: 100)
if set, randomizes the number of requests handled by a single worker process between the value and that supplied by --max-reqs-per-chlid (default: none)
--max-reqs-per-chlid
if set, worker processes will not be spawned more than once than every given seconds. Also, when SIGHUP is being received, no more than one worker processes will be collected every given seconds. This feature is useful for doing a "slow-restart". (default: none)
the Thrall does not use signals or semaphores and it requires a small delay in main thread so it doesn't consume all CPU. (default: 0.1)
Thrall was started as a fork of Starlet server. It has almost the same code as Starlet and it was adapted to use threads instead fork().
Starlet, Starman
If you find the bug or want to implement new features, please report it at https://github.com/dex4er/Thrall/issues
The code repository is available at http://github.com/dex4er/Thrall
Kazuho Oku
miyagawa
Piotr Roszatycki <dexter@cpan.org>
Copyright (c) 2013 Piotr Roszatycki <dexter@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as perl itself.
See http://dev.perl.org/licenses/artistic.html
To install Thrall, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Thrall
CPAN shell
perl -MCPAN -e shell install Thrall
For more information on module installation, please visit the detailed CPAN module installation guide.