Permalink
Browse files

Support --workers

  • Loading branch information...
1 parent 6daf9d3 commit 4842487b11cea6d953fa0a7140e1e4109dca666f @miyagawa committed Apr 22, 2011
Showing with 7 additions and 4 deletions.
  1. +2 −1 bin/fastpass
  2. +5 −2 lib/Fastpass.pm
  3. +0 −1 lib/Fastpass/Server.pm
View
@@ -14,7 +14,8 @@ fastpass - Lightweight FastCGI daemon that works like Unicorn
=head1 SYNOPSIS
- fastpass --listen /tmp/fcgi.sock --worker 10 myapp.psgi
+ fastpass --listen /tmp/fcgi.sock --workers 10 myapp.psgi
+ fastpass --listen :9000
=head1 OPTIONS
View
@@ -11,7 +11,9 @@ use Getopt::Long ();
sub new {
my $class = shift;
bless {
- options => {},
+ options => {
+ workers => 5,
+ },
}, $class;
}
@@ -21,6 +23,7 @@ sub parse_options {
Getopt::Long::GetOptionsFromArray(
\@args,
"listen=s", \$self->{options}{listen},
+ "workers=i", \$self->{options}{workers},
"a|app=s", \$self->{app},
"h|help", sub { $self->show_help; exit(0) },
"v|version", sub { print "fastpass $VERSION\n"; exit(0) },
@@ -78,7 +81,7 @@ Fastpass - FastCGI daemon for PSGI apps
=head1 SYNOPSIS
- fastpass myapp.psgi
+ fastpass --listen :8080 --workers 24 myapp.psgi
=head1 DESCRIPTION
@@ -22,7 +22,6 @@ our $STDERR_BUFFER_SIZE = 0;
sub new {
my($class, %options) = @_;
bless {
- workers => 5,
%options,
# FIXME
values => {

0 comments on commit 4842487

Please sign in to comment.