Starlet-0.31/0000755RzZ);0000000000013023435376013144 5ustar kazuhokazuhoStarlet-0.31/.gitignore0000644RzZ);0000000010612716541665015140 0ustar kazuhokazuho*~ *.bak Makefile blib/ inc/ MANIFEST META.yml MYMETA.yml MYMETA.json Starlet-0.31/Changes0000644RzZ);0000000554413023435257014445 0ustar kazuhokazuhoRevision history for Perl extension Starlet 0.31 - send 100-continue immediately #25 (Gregory Oschwald) - expose new callback for sending informational responses #29 (Kazuho Oku) 0.30 - add child_exit hook #26 (by azrle) 0.29 - fix workers being killed too aggressively when spawn-interval is used #27 (by limitusus) 0.28 - always shutdown after SIGTERM, but only after notifying the client (via connection: close or equiv.) #23 0.26 - fix abrupt connection close when receiving SIGTERM #21 (by shogo82148) 0.25 - support listing to unix socket wo. using Server::Starter - suppress warning when receiving broken requests - fix test issue with Plack >= 1.0035 0.24 - worker processes always receive different sequence of values when calling "rand()" 0.23 - serialize calls to select -> accept when listening to multiple ports 0.22 - listen to multiple ports passed from Server::Starter (ttakezawa) 0.21 - support listening to unix socket (passed by Server::Starter) (kazeburo) 0.20 - support HTTP/1.1 (kazeburo) 0.19 - update the dependencies now that Plack no more depends on LWP (miyagawa; https://github.com/plack/Plack/pull/408) - add support for psgix.harakiri (audreyt) 0.18 - change threshold for combining headers and body from 1024 bytes to 8192 0.17_01 - reduce rt_sig* syscalls (kazeburo) 0.16 - Set REMOTE_PORT environment variable (kazeburo) 0.15 - unbundle Plack::Standalone::Server::Prefork::Server::Starter (see `perldoc Starlet` to find out how to boot Starlet using Server::Starter) 0.14 - support for randomized reqs-per-child - support for slow restart - do not send Server header more than once per every response 0.13 - test compatibilty improvement: ignore proxy setting while running tests (datamuc) 0.12 - [bugfix] fix infinite loop when connection is closed while receiving response content (thanks to Jiro Nishiguchi-san) 0.11 - suppress the warning "Use of "goto" to jump into a construct is deprecated" 0.10 - switch from alarm-based polling to select-based - use TCP_DEFER_ACCEPT on linux - performance tweaks 0.09 - [bugfix] enable keepalive when --max-keepalive-reqs=n (n>1) is set - accept --max-workers=n option (for better interoperability w. Starman) 0.08 - [bugfix] delay termination (when receiving first SIGTERM or SIGINT) until all HTTP requests are being processed 0.07 - hardcode set $PSSPSS::VERSION 0.06 - set $PSSPSS::VERSION to $Starlet::VERSION 0.05 - rename to Starlet from Plack::Server::Standalone::Prefork::Server::Starter (is backwards compatible) - no more depends on HTTP::Server::PSGI 0.04 - follow the changes up to Plack 0.9920 0.03 - try to find start_server from $PATH and $^X, or skip most tests (but not all) if not found - require 5.008, recommend HTTP::Parser::XS 0.02 - require Parallel::Prefork (since Plack intentionally does not require P::Prefork required by Standalone::Prefork) Starlet-0.31/inc/0000755RzZ);0000000000013023435376013715 5ustar kazuhokazuhoStarlet-0.31/inc/Module/0000755RzZ);0000000000013023435376015142 5ustar kazuhokazuhoStarlet-0.31/inc/Module/Install/0000755RzZ);0000000000013023435376016550 5ustar kazuhokazuhoStarlet-0.31/inc/Module/Install/Base.pm0000644RzZ);0000000214713023435277017764 0ustar kazuhokazuho#line 1 package Module::Install::Base; use strict 'vars'; use vars qw{$VERSION}; BEGIN { $VERSION = '1.16'; } # Suspend handler for "redefined" warnings BEGIN { my $w = $SIG{__WARN__}; $SIG{__WARN__} = sub { $w }; } #line 42 sub new { my $class = shift; unless ( defined &{"${class}::call"} ) { *{"${class}::call"} = sub { shift->_top->call(@_) }; } unless ( defined &{"${class}::load"} ) { *{"${class}::load"} = sub { shift->_top->load(@_) }; } bless { @_ }, $class; } #line 61 sub AUTOLOAD { local $@; my $func = eval { shift->_top->autoload } or return; goto &$func; } #line 75 sub _top { $_[0]->{_top}; } #line 90 sub admin { $_[0]->_top->{admin} or Module::Install::Base::FakeAdmin->new; } #line 106 sub is_admin { ! $_[0]->admin->isa('Module::Install::Base::FakeAdmin'); } sub DESTROY {} package Module::Install::Base::FakeAdmin; use vars qw{$VERSION}; BEGIN { $VERSION = $Module::Install::Base::VERSION; } my $fake; sub new { $fake ||= bless(\@_, $_[0]); } sub AUTOLOAD {} sub DESTROY {} # Restore warning handler BEGIN { $SIG{__WARN__} = $SIG{__WARN__}->(); } 1; #line 159 Starlet-0.31/inc/Module/Install/Can.pm0000644RzZ);0000000615713023435277017620 0ustar kazuhokazuho#line 1 package Module::Install::Can; use strict; use Config (); use ExtUtils::MakeMaker (); use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { $VERSION = '1.16'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } # check if we can load some module ### Upgrade this to not have to load the module if possible sub can_use { my ($self, $mod, $ver) = @_; $mod =~ s{::|\\}{/}g; $mod .= '.pm' unless $mod =~ /\.pm$/i; my $pkg = $mod; $pkg =~ s{/}{::}g; $pkg =~ s{\.pm$}{}i; local $@; eval { require $mod; $pkg->VERSION($ver || 0); 1 }; } # Check if we can run some command sub can_run { my ($self, $cmd) = @_; my $_cmd = $cmd; return $_cmd if (-x $_cmd or $_cmd = MM->maybe_command($_cmd)); for my $dir ((split /$Config::Config{path_sep}/, $ENV{PATH}), '.') { next if $dir eq ''; require File::Spec; my $abs = File::Spec->catfile($dir, $cmd); return $abs if (-x $abs or $abs = MM->maybe_command($abs)); } return; } # Can our C compiler environment build XS files sub can_xs { my $self = shift; # Ensure we have the CBuilder module $self->configure_requires( 'ExtUtils::CBuilder' => 0.27 ); # Do we have the configure_requires checker? local $@; eval "require ExtUtils::CBuilder;"; if ( $@ ) { # They don't obey configure_requires, so it is # someone old and delicate. Try to avoid hurting # them by falling back to an older simpler test. return $self->can_cc(); } # Do we have a working C compiler my $builder = ExtUtils::CBuilder->new( quiet => 1, ); unless ( $builder->have_compiler ) { # No working C compiler return 0; } # Write a C file representative of what XS becomes require File::Temp; my ( $FH, $tmpfile ) = File::Temp::tempfile( "compilexs-XXXXX", SUFFIX => '.c', ); binmode $FH; print $FH <<'END_C'; #include "EXTERN.h" #include "perl.h" #include "XSUB.h" int main(int argc, char **argv) { return 0; } int boot_sanexs() { return 1; } END_C close $FH; # Can the C compiler access the same headers XS does my @libs = (); my $object = undef; eval { local $^W = 0; $object = $builder->compile( source => $tmpfile, ); @libs = $builder->link( objects => $object, module_name => 'sanexs', ); }; my $result = $@ ? 0 : 1; # Clean up all the build files foreach ( $tmpfile, $object, @libs ) { next unless defined $_; 1 while unlink; } return $result; } # Can we locate a (the) C compiler sub can_cc { my $self = shift; my @chunks = split(/ /, $Config::Config{cc}) or return; # $Config{cc} may contain args; try to find out the program part while (@chunks) { return $self->can_run("@chunks") || (pop(@chunks), next); } return; } # Fix Cygwin bug on maybe_command(); if ( $^O eq 'cygwin' ) { require ExtUtils::MM_Cygwin; require ExtUtils::MM_Win32; if ( ! defined(&ExtUtils::MM_Cygwin::maybe_command) ) { *ExtUtils::MM_Cygwin::maybe_command = sub { my ($self, $file) = @_; if ($file =~ m{^/cygdrive/}i and ExtUtils::MM_Win32->can('maybe_command')) { ExtUtils::MM_Win32->maybe_command($file); } else { ExtUtils::MM_Unix->maybe_command($file); } } } } 1; __END__ #line 236 Starlet-0.31/inc/Module/Install/Fetch.pm0000644RzZ);0000000462713023435277020150 0ustar kazuhokazuho#line 1 package Module::Install::Fetch; use strict; use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { $VERSION = '1.16'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } sub get_file { my ($self, %args) = @_; my ($scheme, $host, $path, $file) = $args{url} =~ m|^(\w+)://([^/]+)(.+)/(.+)| or return; if ( $scheme eq 'http' and ! eval { require LWP::Simple; 1 } ) { $args{url} = $args{ftp_url} or (warn("LWP support unavailable!\n"), return); ($scheme, $host, $path, $file) = $args{url} =~ m|^(\w+)://([^/]+)(.+)/(.+)| or return; } $|++; print "Fetching '$file' from $host... "; unless (eval { require Socket; Socket::inet_aton($host) }) { warn "'$host' resolve failed!\n"; return; } return unless $scheme eq 'ftp' or $scheme eq 'http'; require Cwd; my $dir = Cwd::getcwd(); chdir $args{local_dir} or return if exists $args{local_dir}; if (eval { require LWP::Simple; 1 }) { LWP::Simple::mirror($args{url}, $file); } elsif (eval { require Net::FTP; 1 }) { eval { # use Net::FTP to get past firewall my $ftp = Net::FTP->new($host, Passive => 1, Timeout => 600); $ftp->login("anonymous", 'anonymous@example.com'); $ftp->cwd($path); $ftp->binary; $ftp->get($file) or (warn("$!\n"), return); $ftp->quit; } } elsif (my $ftp = $self->can_run('ftp')) { eval { # no Net::FTP, fallback to ftp.exe require FileHandle; my $fh = FileHandle->new; local $SIG{CHLD} = 'IGNORE'; unless ($fh->open("|$ftp -n")) { warn "Couldn't open ftp: $!\n"; chdir $dir; return; } my @dialog = split(/\n/, <<"END_FTP"); open $host user anonymous anonymous\@example.com cd $path binary get $file $file quit END_FTP foreach (@dialog) { $fh->print("$_\n") } $fh->close; } } else { warn "No working 'ftp' program available!\n"; chdir $dir; return; } unless (-f $file) { warn "Fetching failed: $@\n"; chdir $dir; return; } return if exists $args{size} and -s $file != $args{size}; system($args{run}) if exists $args{run}; unlink($file) if $args{remove}; print(((!exists $args{check_for} or -e $args{check_for}) ? "done!" : "failed! ($!)"), "\n"); chdir $dir; return !$?; } 1; Starlet-0.31/inc/Module/Install/Makefile.pm0000644RzZ);0000002743713023435277020640 0ustar kazuhokazuho#line 1 package Module::Install::Makefile; use strict 'vars'; use ExtUtils::MakeMaker (); use Module::Install::Base (); use Fcntl qw/:flock :seek/; use vars qw{$VERSION @ISA $ISCORE}; BEGIN { $VERSION = '1.16'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } sub Makefile { $_[0] } my %seen = (); sub prompt { shift; # Infinite loop protection my @c = caller(); if ( ++$seen{"$c[1]|$c[2]|$_[0]"} > 3 ) { die "Caught an potential prompt infinite loop ($c[1]|$c[2]|$_[0])"; } # In automated testing or non-interactive session, always use defaults if ( ($ENV{AUTOMATED_TESTING} or -! -t STDIN) and ! $ENV{PERL_MM_USE_DEFAULT} ) { local $ENV{PERL_MM_USE_DEFAULT} = 1; goto &ExtUtils::MakeMaker::prompt; } else { goto &ExtUtils::MakeMaker::prompt; } } # Store a cleaned up version of the MakeMaker version, # since we need to behave differently in a variety of # ways based on the MM version. my $makemaker = eval $ExtUtils::MakeMaker::VERSION; # If we are passed a param, do a "newer than" comparison. # Otherwise, just return the MakeMaker version. sub makemaker { ( @_ < 2 or $makemaker >= eval($_[1]) ) ? $makemaker : 0 } # Ripped from ExtUtils::MakeMaker 6.56, and slightly modified # as we only need to know here whether the attribute is an array # or a hash or something else (which may or may not be appendable). my %makemaker_argtype = ( C => 'ARRAY', CONFIG => 'ARRAY', # CONFIGURE => 'CODE', # ignore DIR => 'ARRAY', DL_FUNCS => 'HASH', DL_VARS => 'ARRAY', EXCLUDE_EXT => 'ARRAY', EXE_FILES => 'ARRAY', FUNCLIST => 'ARRAY', H => 'ARRAY', IMPORTS => 'HASH', INCLUDE_EXT => 'ARRAY', LIBS => 'ARRAY', # ignore '' MAN1PODS => 'HASH', MAN3PODS => 'HASH', META_ADD => 'HASH', META_MERGE => 'HASH', PL_FILES => 'HASH', PM => 'HASH', PMLIBDIRS => 'ARRAY', PMLIBPARENTDIRS => 'ARRAY', PREREQ_PM => 'HASH', CONFIGURE_REQUIRES => 'HASH', SKIP => 'ARRAY', TYPEMAPS => 'ARRAY', XS => 'HASH', # VERSION => ['version',''], # ignore # _KEEP_AFTER_FLUSH => '', clean => 'HASH', depend => 'HASH', dist => 'HASH', dynamic_lib=> 'HASH', linkext => 'HASH', macro => 'HASH', postamble => 'HASH', realclean => 'HASH', test => 'HASH', tool_autosplit => 'HASH', # special cases where you can use makemaker_append CCFLAGS => 'APPENDABLE', DEFINE => 'APPENDABLE', INC => 'APPENDABLE', LDDLFLAGS => 'APPENDABLE', LDFROM => 'APPENDABLE', ); sub makemaker_args { my ($self, %new_args) = @_; my $args = ( $self->{makemaker_args} ||= {} ); foreach my $key (keys %new_args) { if ($makemaker_argtype{$key}) { if ($makemaker_argtype{$key} eq 'ARRAY') { $args->{$key} = [] unless defined $args->{$key}; unless (ref $args->{$key} eq 'ARRAY') { $args->{$key} = [$args->{$key}] } push @{$args->{$key}}, ref $new_args{$key} eq 'ARRAY' ? @{$new_args{$key}} : $new_args{$key}; } elsif ($makemaker_argtype{$key} eq 'HASH') { $args->{$key} = {} unless defined $args->{$key}; foreach my $skey (keys %{ $new_args{$key} }) { $args->{$key}{$skey} = $new_args{$key}{$skey}; } } elsif ($makemaker_argtype{$key} eq 'APPENDABLE') { $self->makemaker_append($key => $new_args{$key}); } } else { if (defined $args->{$key}) { warn qq{MakeMaker attribute "$key" is overriden; use "makemaker_append" to append values\n}; } $args->{$key} = $new_args{$key}; } } return $args; } # For mm args that take multiple space-separated args, # append an argument to the current list. sub makemaker_append { my $self = shift; my $name = shift; my $args = $self->makemaker_args; $args->{$name} = defined $args->{$name} ? join( ' ', $args->{$name}, @_ ) : join( ' ', @_ ); } sub build_subdirs { my $self = shift; my $subdirs = $self->makemaker_args->{DIR} ||= []; for my $subdir (@_) { push @$subdirs, $subdir; } } sub clean_files { my $self = shift; my $clean = $self->makemaker_args->{clean} ||= {}; %$clean = ( %$clean, FILES => join ' ', grep { length $_ } ($clean->{FILES} || (), @_), ); } sub realclean_files { my $self = shift; my $realclean = $self->makemaker_args->{realclean} ||= {}; %$realclean = ( %$realclean, FILES => join ' ', grep { length $_ } ($realclean->{FILES} || (), @_), ); } sub libs { my $self = shift; my $libs = ref $_[0] ? shift : [ shift ]; $self->makemaker_args( LIBS => $libs ); } sub inc { my $self = shift; $self->makemaker_args( INC => shift ); } sub _wanted_t { } sub tests_recursive { my $self = shift; my $dir = shift || 't'; unless ( -d $dir ) { die "tests_recursive dir '$dir' does not exist"; } my %tests = map { $_ => 1 } split / /, ($self->tests || ''); require File::Find; File::Find::find( sub { /\.t$/ and -f $_ and $tests{"$File::Find::dir/*.t"} = 1 }, $dir ); $self->tests( join ' ', sort keys %tests ); } sub write { my $self = shift; die "&Makefile->write() takes no arguments\n" if @_; # Check the current Perl version my $perl_version = $self->perl_version; if ( $perl_version ) { eval "use $perl_version; 1" or die "ERROR: perl: Version $] is installed, " . "but we need version >= $perl_version"; } # Make sure we have a new enough MakeMaker require ExtUtils::MakeMaker; if ( $perl_version and $self->_cmp($perl_version, '5.006') >= 0 ) { # This previous attempted to inherit the version of # ExtUtils::MakeMaker in use by the module author, but this # was found to be untenable as some authors build releases # using future dev versions of EU:MM that nobody else has. # Instead, #toolchain suggests we use 6.59 which is the most # stable version on CPAN at time of writing and is, to quote # ribasushi, "not terminally fucked, > and tested enough". # TODO: We will now need to maintain this over time to push # the version up as new versions are released. $self->build_requires( 'ExtUtils::MakeMaker' => 6.59 ); $self->configure_requires( 'ExtUtils::MakeMaker' => 6.59 ); } else { # Allow legacy-compatibility with 5.005 by depending on the # most recent EU:MM that supported 5.005. $self->build_requires( 'ExtUtils::MakeMaker' => 6.36 ); $self->configure_requires( 'ExtUtils::MakeMaker' => 6.36 ); } # Generate the MakeMaker params my $args = $self->makemaker_args; $args->{DISTNAME} = $self->name; $args->{NAME} = $self->module_name || $self->name; $args->{NAME} =~ s/-/::/g; $args->{VERSION} = $self->version or die <<'EOT'; ERROR: Can't determine distribution version. Please specify it explicitly via 'version' in Makefile.PL, or set a valid $VERSION in a module, and provide its file path via 'version_from' (or 'all_from' if you prefer) in Makefile.PL. EOT if ( $self->tests ) { my @tests = split ' ', $self->tests; my %seen; $args->{test} = { TESTS => (join ' ', grep {!$seen{$_}++} @tests), }; } elsif ( $Module::Install::ExtraTests::use_extratests ) { # Module::Install::ExtraTests doesn't set $self->tests and does its own tests via harness. # So, just ignore our xt tests here. } elsif ( -d 'xt' and ($Module::Install::AUTHOR or $ENV{RELEASE_TESTING}) ) { $args->{test} = { TESTS => join( ' ', map { "$_/*.t" } grep { -d $_ } qw{ t xt } ), }; } if ( $] >= 5.005 ) { $args->{ABSTRACT} = $self->abstract; $args->{AUTHOR} = join ', ', @{$self->author || []}; } if ( $self->makemaker(6.10) ) { $args->{NO_META} = 1; #$args->{NO_MYMETA} = 1; } if ( $self->makemaker(6.17) and $self->sign ) { $args->{SIGN} = 1; } unless ( $self->is_admin ) { delete $args->{SIGN}; } if ( $self->makemaker(6.31) and $self->license ) { $args->{LICENSE} = $self->license; } my $prereq = ($args->{PREREQ_PM} ||= {}); %$prereq = ( %$prereq, map { @$_ } # flatten [module => version] map { @$_ } grep $_, ($self->requires) ); # Remove any reference to perl, PREREQ_PM doesn't support it delete $args->{PREREQ_PM}->{perl}; # Merge both kinds of requires into BUILD_REQUIRES my $build_prereq = ($args->{BUILD_REQUIRES} ||= {}); %$build_prereq = ( %$build_prereq, map { @$_ } # flatten [module => version] map { @$_ } grep $_, ($self->configure_requires, $self->build_requires) ); # Remove any reference to perl, BUILD_REQUIRES doesn't support it delete $args->{BUILD_REQUIRES}->{perl}; # Delete bundled dists from prereq_pm, add it to Makefile DIR my $subdirs = ($args->{DIR} || []); if ($self->bundles) { my %processed; foreach my $bundle (@{ $self->bundles }) { my ($mod_name, $dist_dir) = @$bundle; delete $prereq->{$mod_name}; $dist_dir = File::Basename::basename($dist_dir); # dir for building this module if (not exists $processed{$dist_dir}) { if (-d $dist_dir) { # List as sub-directory to be processed by make push @$subdirs, $dist_dir; } # Else do nothing: the module is already present on the system $processed{$dist_dir} = undef; } } } unless ( $self->makemaker('6.55_03') ) { %$prereq = (%$prereq,%$build_prereq); delete $args->{BUILD_REQUIRES}; } if ( my $perl_version = $self->perl_version ) { eval "use $perl_version; 1" or die "ERROR: perl: Version $] is installed, " . "but we need version >= $perl_version"; if ( $self->makemaker(6.48) ) { $args->{MIN_PERL_VERSION} = $perl_version; } } if ($self->installdirs) { warn qq{old INSTALLDIRS (probably set by makemaker_args) is overriden by installdirs\n} if $args->{INSTALLDIRS}; $args->{INSTALLDIRS} = $self->installdirs; } my %args = map { ( $_ => $args->{$_} ) } grep {defined($args->{$_} ) } keys %$args; my $user_preop = delete $args{dist}->{PREOP}; if ( my $preop = $self->admin->preop($user_preop) ) { foreach my $key ( keys %$preop ) { $args{dist}->{$key} = $preop->{$key}; } } my $mm = ExtUtils::MakeMaker::WriteMakefile(%args); $self->fix_up_makefile($mm->{FIRST_MAKEFILE} || 'Makefile'); } sub fix_up_makefile { my $self = shift; my $makefile_name = shift; my $top_class = ref($self->_top) || ''; my $top_version = $self->_top->VERSION || ''; my $preamble = $self->preamble ? "# Preamble by $top_class $top_version\n" . $self->preamble : ''; my $postamble = "# Postamble by $top_class $top_version\n" . ($self->postamble || ''); local *MAKEFILE; open MAKEFILE, "+< $makefile_name" or die "fix_up_makefile: Couldn't open $makefile_name: $!"; eval { flock MAKEFILE, LOCK_EX }; my $makefile = do { local $/; }; $makefile =~ s/\b(test_harness\(\$\(TEST_VERBOSE\), )/$1'inc', /; $makefile =~ s/( -I\$\(INST_ARCHLIB\))/ -Iinc$1/g; $makefile =~ s/( "-I\$\(INST_LIB\)")/ "-Iinc"$1/g; $makefile =~ s/^(FULLPERL = .*)/$1 "-Iinc"/m; $makefile =~ s/^(PERL = .*)/$1 "-Iinc"/m; # Module::Install will never be used to build the Core Perl # Sometimes PERL_LIB and PERL_ARCHLIB get written anyway, which breaks # PREFIX/PERL5LIB, and thus, install_share. Blank them if they exist $makefile =~ s/^PERL_LIB = .+/PERL_LIB =/m; #$makefile =~ s/^PERL_ARCHLIB = .+/PERL_ARCHLIB =/m; # Perl 5.005 mentions PERL_LIB explicitly, so we have to remove that as well. $makefile =~ s/(\"?)-I\$\(PERL_LIB\)\1//g; # XXX - This is currently unused; not sure if it breaks other MM-users # $makefile =~ s/^pm_to_blib\s+:\s+/pm_to_blib :: /mg; seek MAKEFILE, 0, SEEK_SET; truncate MAKEFILE, 0; print MAKEFILE "$preamble$makefile$postamble" or die $!; close MAKEFILE or die $!; 1; } sub preamble { my ($self, $text) = @_; $self->{preamble} = $text . $self->{preamble} if defined $text; $self->{preamble}; } sub postamble { my ($self, $text) = @_; $self->{postamble} ||= $self->admin->postamble; $self->{postamble} .= $text if defined $text; $self->{postamble} } 1; __END__ #line 544 Starlet-0.31/inc/Module/Install/Metadata.pm0000644RzZ);0000004330213023435277020630 0ustar kazuhokazuho#line 1 package Module::Install::Metadata; use strict 'vars'; use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { $VERSION = '1.16'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } my @boolean_keys = qw{ sign }; my @scalar_keys = qw{ name module_name abstract version distribution_type tests installdirs }; my @tuple_keys = qw{ configure_requires build_requires requires recommends bundles resources }; my @resource_keys = qw{ homepage bugtracker repository }; my @array_keys = qw{ keywords author }; *authors = \&author; sub Meta { shift } sub Meta_BooleanKeys { @boolean_keys } sub Meta_ScalarKeys { @scalar_keys } sub Meta_TupleKeys { @tuple_keys } sub Meta_ResourceKeys { @resource_keys } sub Meta_ArrayKeys { @array_keys } foreach my $key ( @boolean_keys ) { *$key = sub { my $self = shift; if ( defined wantarray and not @_ ) { return $self->{values}->{$key}; } $self->{values}->{$key} = ( @_ ? $_[0] : 1 ); return $self; }; } foreach my $key ( @scalar_keys ) { *$key = sub { my $self = shift; return $self->{values}->{$key} if defined wantarray and !@_; $self->{values}->{$key} = shift; return $self; }; } foreach my $key ( @array_keys ) { *$key = sub { my $self = shift; return $self->{values}->{$key} if defined wantarray and !@_; $self->{values}->{$key} ||= []; push @{$self->{values}->{$key}}, @_; return $self; }; } foreach my $key ( @resource_keys ) { *$key = sub { my $self = shift; unless ( @_ ) { return () unless $self->{values}->{resources}; return map { $_->[1] } grep { $_->[0] eq $key } @{ $self->{values}->{resources} }; } return $self->{values}->{resources}->{$key} unless @_; my $uri = shift or die( "Did not provide a value to $key()" ); $self->resources( $key => $uri ); return 1; }; } foreach my $key ( grep { $_ ne "resources" } @tuple_keys) { *$key = sub { my $self = shift; return $self->{values}->{$key} unless @_; my @added; while ( @_ ) { my $module = shift or last; my $version = shift || 0; push @added, [ $module, $version ]; } push @{ $self->{values}->{$key} }, @added; return map {@$_} @added; }; } # Resource handling my %lc_resource = map { $_ => 1 } qw{ homepage license bugtracker repository }; sub resources { my $self = shift; while ( @_ ) { my $name = shift or last; my $value = shift or next; if ( $name eq lc $name and ! $lc_resource{$name} ) { die("Unsupported reserved lowercase resource '$name'"); } $self->{values}->{resources} ||= []; push @{ $self->{values}->{resources} }, [ $name, $value ]; } $self->{values}->{resources}; } # Aliases for build_requires that will have alternative # meanings in some future version of META.yml. sub test_requires { shift->build_requires(@_) } sub install_requires { shift->build_requires(@_) } # Aliases for installdirs options sub install_as_core { $_[0]->installdirs('perl') } sub install_as_cpan { $_[0]->installdirs('site') } sub install_as_site { $_[0]->installdirs('site') } sub install_as_vendor { $_[0]->installdirs('vendor') } sub dynamic_config { my $self = shift; my $value = @_ ? shift : 1; if ( $self->{values}->{dynamic_config} ) { # Once dynamic we never change to static, for safety return 0; } $self->{values}->{dynamic_config} = $value ? 1 : 0; return 1; } # Convenience command sub static_config { shift->dynamic_config(0); } sub perl_version { my $self = shift; return $self->{values}->{perl_version} unless @_; my $version = shift or die( "Did not provide a value to perl_version()" ); # Normalize the version $version = $self->_perl_version($version); # We don't support the really old versions unless ( $version >= 5.005 ) { die "Module::Install only supports 5.005 or newer (use ExtUtils::MakeMaker)\n"; } $self->{values}->{perl_version} = $version; } sub all_from { my ( $self, $file ) = @_; unless ( defined($file) ) { my $name = $self->name or die( "all_from called with no args without setting name() first" ); $file = join('/', 'lib', split(/-/, $name)) . '.pm'; $file =~ s{.*/}{} unless -e $file; unless ( -e $file ) { die("all_from cannot find $file from $name"); } } unless ( -f $file ) { die("The path '$file' does not exist, or is not a file"); } $self->{values}{all_from} = $file; # Some methods pull from POD instead of code. # If there is a matching .pod, use that instead my $pod = $file; $pod =~ s/\.pm$/.pod/i; $pod = $file unless -e $pod; # Pull the different values $self->name_from($file) unless $self->name; $self->version_from($file) unless $self->version; $self->perl_version_from($file) unless $self->perl_version; $self->author_from($pod) unless @{$self->author || []}; $self->license_from($pod) unless $self->license; $self->abstract_from($pod) unless $self->abstract; return 1; } sub provides { my $self = shift; my $provides = ( $self->{values}->{provides} ||= {} ); %$provides = (%$provides, @_) if @_; return $provides; } sub auto_provides { my $self = shift; return $self unless $self->is_admin; unless (-e 'MANIFEST') { warn "Cannot deduce auto_provides without a MANIFEST, skipping\n"; return $self; } # Avoid spurious warnings as we are not checking manifest here. local $SIG{__WARN__} = sub {1}; require ExtUtils::Manifest; local *ExtUtils::Manifest::manicheck = sub { return }; require Module::Build; my $build = Module::Build->new( dist_name => $self->name, dist_version => $self->version, license => $self->license, ); $self->provides( %{ $build->find_dist_packages || {} } ); } sub feature { my $self = shift; my $name = shift; my $features = ( $self->{values}->{features} ||= [] ); my $mods; if ( @_ == 1 and ref( $_[0] ) ) { # The user used ->feature like ->features by passing in the second # argument as a reference. Accomodate for that. $mods = $_[0]; } else { $mods = \@_; } my $count = 0; push @$features, ( $name => [ map { ref($_) ? ( ref($_) eq 'HASH' ) ? %$_ : @$_ : $_ } @$mods ] ); return @$features; } sub features { my $self = shift; while ( my ( $name, $mods ) = splice( @_, 0, 2 ) ) { $self->feature( $name, @$mods ); } return $self->{values}->{features} ? @{ $self->{values}->{features} } : (); } sub no_index { my $self = shift; my $type = shift; push @{ $self->{values}->{no_index}->{$type} }, @_ if $type; return $self->{values}->{no_index}; } sub read { my $self = shift; $self->include_deps( 'YAML::Tiny', 0 ); require YAML::Tiny; my $data = YAML::Tiny::LoadFile('META.yml'); # Call methods explicitly in case user has already set some values. while ( my ( $key, $value ) = each %$data ) { next unless $self->can($key); if ( ref $value eq 'HASH' ) { while ( my ( $module, $version ) = each %$value ) { $self->can($key)->($self, $module => $version ); } } else { $self->can($key)->($self, $value); } } return $self; } sub write { my $self = shift; return $self unless $self->is_admin; $self->admin->write_meta; return $self; } sub version_from { require ExtUtils::MM_Unix; my ( $self, $file ) = @_; $self->version( ExtUtils::MM_Unix->parse_version($file) ); # for version integrity check $self->makemaker_args( VERSION_FROM => $file ); } sub abstract_from { require ExtUtils::MM_Unix; my ( $self, $file ) = @_; $self->abstract( bless( { DISTNAME => $self->name }, 'ExtUtils::MM_Unix' )->parse_abstract($file) ); } # Add both distribution and module name sub name_from { my ($self, $file) = @_; if ( Module::Install::_read($file) =~ m/ ^ \s* package \s* ([\w:]+) [\s|;]* /ixms ) { my ($name, $module_name) = ($1, $1); $name =~ s{::}{-}g; $self->name($name); unless ( $self->module_name ) { $self->module_name($module_name); } } else { die("Cannot determine name from $file\n"); } } sub _extract_perl_version { if ( $_[0] =~ m/ ^\s* (?:use|require) \s* v? ([\d_\.]+) \s* ; /ixms ) { my $perl_version = $1; $perl_version =~ s{_}{}g; return $perl_version; } else { return; } } sub perl_version_from { my $self = shift; my $perl_version=_extract_perl_version(Module::Install::_read($_[0])); if ($perl_version) { $self->perl_version($perl_version); } else { warn "Cannot determine perl version info from $_[0]\n"; return; } } sub author_from { my $self = shift; my $content = Module::Install::_read($_[0]); if ($content =~ m/ =head \d \s+ (?:authors?)\b \s* ([^\n]*) | =head \d \s+ (?:licen[cs]e|licensing|copyright|legal)\b \s* .*? copyright .*? \d\d\d[\d.]+ \s* (?:\bby\b)? \s* ([^\n]*) /ixms) { my $author = $1 || $2; # XXX: ugly but should work anyway... if (eval "require Pod::Escapes; 1") { # Pod::Escapes has a mapping table. # It's in core of perl >= 5.9.3, and should be installed # as one of the Pod::Simple's prereqs, which is a prereq # of Pod::Text 3.x (see also below). $author =~ s{ E<( (\d+) | ([A-Za-z]+) )> } { defined $2 ? chr($2) : defined $Pod::Escapes::Name2character_number{$1} ? chr($Pod::Escapes::Name2character_number{$1}) : do { warn "Unknown escape: E<$1>"; "E<$1>"; }; }gex; } elsif (eval "require Pod::Text; 1" && $Pod::Text::VERSION < 3) { # Pod::Text < 3.0 has yet another mapping table, # though the table name of 2.x and 1.x are different. # (1.x is in core of Perl < 5.6, 2.x is in core of # Perl < 5.9.3) my $mapping = ($Pod::Text::VERSION < 2) ? \%Pod::Text::HTML_Escapes : \%Pod::Text::ESCAPES; $author =~ s{ E<( (\d+) | ([A-Za-z]+) )> } { defined $2 ? chr($2) : defined $mapping->{$1} ? $mapping->{$1} : do { warn "Unknown escape: E<$1>"; "E<$1>"; }; }gex; } else { $author =~ s{E}{<}g; $author =~ s{E}{>}g; } $self->author($author); } else { warn "Cannot determine author info from $_[0]\n"; } } #Stolen from M::B my %license_urls = ( perl => 'http://dev.perl.org/licenses/', apache => 'http://apache.org/licenses/LICENSE-2.0', apache_1_1 => 'http://apache.org/licenses/LICENSE-1.1', artistic => 'http://opensource.org/licenses/artistic-license.php', artistic_2 => 'http://opensource.org/licenses/artistic-license-2.0.php', lgpl => 'http://opensource.org/licenses/lgpl-license.php', lgpl2 => 'http://opensource.org/licenses/lgpl-2.1.php', lgpl3 => 'http://opensource.org/licenses/lgpl-3.0.html', bsd => 'http://opensource.org/licenses/bsd-license.php', gpl => 'http://opensource.org/licenses/gpl-license.php', gpl2 => 'http://opensource.org/licenses/gpl-2.0.php', gpl3 => 'http://opensource.org/licenses/gpl-3.0.html', mit => 'http://opensource.org/licenses/mit-license.php', mozilla => 'http://opensource.org/licenses/mozilla1.1.php', open_source => undef, unrestricted => undef, restrictive => undef, unknown => undef, ); sub license { my $self = shift; return $self->{values}->{license} unless @_; my $license = shift or die( 'Did not provide a value to license()' ); $license = __extract_license($license) || lc $license; $self->{values}->{license} = $license; # Automatically fill in license URLs if ( $license_urls{$license} ) { $self->resources( license => $license_urls{$license} ); } return 1; } sub _extract_license { my $pod = shift; my $matched; return __extract_license( ($matched) = $pod =~ m/ (=head \d \s+ L(?i:ICEN[CS]E|ICENSING)\b.*?) (=head \d.*|=cut.*|)\z /xms ) || __extract_license( ($matched) = $pod =~ m/ (=head \d \s+ (?:C(?i:OPYRIGHTS?)|L(?i:EGAL))\b.*?) (=head \d.*|=cut.*|)\z /xms ); } sub __extract_license { my $license_text = shift or return; my @phrases = ( '(?:under )?the same (?:terms|license) as (?:perl|the perl (?:\d )?programming language)' => 'perl', 1, '(?:under )?the terms of (?:perl|the perl programming language) itself' => 'perl', 1, 'Artistic and GPL' => 'perl', 1, 'GNU general public license' => 'gpl', 1, 'GNU public license' => 'gpl', 1, 'GNU lesser general public license' => 'lgpl', 1, 'GNU lesser public license' => 'lgpl', 1, 'GNU library general public license' => 'lgpl', 1, 'GNU library public license' => 'lgpl', 1, 'GNU Free Documentation license' => 'unrestricted', 1, 'GNU Affero General Public License' => 'open_source', 1, '(?:Free)?BSD license' => 'bsd', 1, 'Artistic license 2\.0' => 'artistic_2', 1, 'Artistic license' => 'artistic', 1, 'Apache (?:Software )?license' => 'apache', 1, 'GPL' => 'gpl', 1, 'LGPL' => 'lgpl', 1, 'BSD' => 'bsd', 1, 'Artistic' => 'artistic', 1, 'MIT' => 'mit', 1, 'Mozilla Public License' => 'mozilla', 1, 'Q Public License' => 'open_source', 1, 'OpenSSL License' => 'unrestricted', 1, 'SSLeay License' => 'unrestricted', 1, 'zlib License' => 'open_source', 1, 'proprietary' => 'proprietary', 0, ); while ( my ($pattern, $license, $osi) = splice(@phrases, 0, 3) ) { $pattern =~ s#\s+#\\s+#gs; if ( $license_text =~ /\b$pattern\b/i ) { return $license; } } return ''; } sub license_from { my $self = shift; if (my $license=_extract_license(Module::Install::_read($_[0]))) { $self->license($license); } else { warn "Cannot determine license info from $_[0]\n"; return 'unknown'; } } sub _extract_bugtracker { my @links = $_[0] =~ m#L<( https?\Q://rt.cpan.org/\E[^>]+| https?\Q://github.com/\E[\w_]+/[\w_]+/issues| https?\Q://code.google.com/p/\E[\w_\-]+/issues/list )>#gx; my %links; @links{@links}=(); @links=keys %links; return @links; } sub bugtracker_from { my $self = shift; my $content = Module::Install::_read($_[0]); my @links = _extract_bugtracker($content); unless ( @links ) { warn "Cannot determine bugtracker info from $_[0]\n"; return 0; } if ( @links > 1 ) { warn "Found more than one bugtracker link in $_[0]\n"; return 0; } # Set the bugtracker bugtracker( $links[0] ); return 1; } sub requires_from { my $self = shift; my $content = Module::Install::_readperl($_[0]); my @requires = $content =~ m/^use\s+([^\W\d]\w*(?:::\w+)*)\s+(v?[\d\.]+)/mg; while ( @requires ) { my $module = shift @requires; my $version = shift @requires; $self->requires( $module => $version ); } } sub test_requires_from { my $self = shift; my $content = Module::Install::_readperl($_[0]); my @requires = $content =~ m/^use\s+([^\W\d]\w*(?:::\w+)*)\s+([\d\.]+)/mg; while ( @requires ) { my $module = shift @requires; my $version = shift @requires; $self->test_requires( $module => $version ); } } # Convert triple-part versions (eg, 5.6.1 or 5.8.9) to # numbers (eg, 5.006001 or 5.008009). # Also, convert double-part versions (eg, 5.8) sub _perl_version { my $v = $_[-1]; $v =~ s/^([1-9])\.([1-9]\d?\d?)$/sprintf("%d.%03d",$1,$2)/e; $v =~ s/^([1-9])\.([1-9]\d?\d?)\.(0|[1-9]\d?\d?)$/sprintf("%d.%03d%03d",$1,$2,$3 || 0)/e; $v =~ s/(\.\d\d\d)000$/$1/; $v =~ s/_.+$//; if ( ref($v) ) { # Numify $v = $v + 0; } return $v; } sub add_metadata { my $self = shift; my %hash = @_; for my $key (keys %hash) { warn "add_metadata: $key is not prefixed with 'x_'.\n" . "Use appopriate function to add non-private metadata.\n" unless $key =~ /^x_/; $self->{values}->{$key} = $hash{$key}; } } ###################################################################### # MYMETA Support sub WriteMyMeta { die "WriteMyMeta has been deprecated"; } sub write_mymeta_yaml { my $self = shift; # We need YAML::Tiny to write the MYMETA.yml file unless ( eval { require YAML::Tiny; 1; } ) { return 1; } # Generate the data my $meta = $self->_write_mymeta_data or return 1; # Save as the MYMETA.yml file print "Writing MYMETA.yml\n"; YAML::Tiny::DumpFile('MYMETA.yml', $meta); } sub write_mymeta_json { my $self = shift; # We need JSON to write the MYMETA.json file unless ( eval { require JSON; 1; } ) { return 1; } # Generate the data my $meta = $self->_write_mymeta_data or return 1; # Save as the MYMETA.yml file print "Writing MYMETA.json\n"; Module::Install::_write( 'MYMETA.json', JSON->new->pretty(1)->canonical->encode($meta), ); } sub _write_mymeta_data { my $self = shift; # If there's no existing META.yml there is nothing we can do return undef unless -f 'META.yml'; # We need Parse::CPAN::Meta to load the file unless ( eval { require Parse::CPAN::Meta; 1; } ) { return undef; } # Merge the perl version into the dependencies my $val = $self->Meta->{values}; my $perl = delete $val->{perl_version}; if ( $perl ) { $val->{requires} ||= []; my $requires = $val->{requires}; # Canonize to three-dot version after Perl 5.6 if ( $perl >= 5.006 ) { $perl =~ s{^(\d+)\.(\d\d\d)(\d*)}{join('.', $1, int($2||0), int($3||0))}e } unshift @$requires, [ perl => $perl ]; } # Load the advisory META.yml file my @yaml = Parse::CPAN::Meta::LoadFile('META.yml'); my $meta = $yaml[0]; # Overwrite the non-configure dependency hashes delete $meta->{requires}; delete $meta->{build_requires}; delete $meta->{recommends}; if ( exists $val->{requires} ) { $meta->{requires} = { map { @$_ } @{ $val->{requires} } }; } if ( exists $val->{build_requires} ) { $meta->{build_requires} = { map { @$_ } @{ $val->{build_requires} } }; } return $meta; } 1; Starlet-0.31/inc/Module/Install/ReadmeFromPod.pm0000644RzZ);0000001016413023435277021574 0ustar kazuhokazuho#line 1 package Module::Install::ReadmeFromPod; use 5.006; use strict; use warnings; use base qw(Module::Install::Base); use vars qw($VERSION); $VERSION = '0.26'; { # these aren't defined until after _require_admin is run, so # define them so prototypes are available during compilation. sub io; sub capture(&;@); #line 28 my $done = 0; sub _require_admin { # do this once to avoid redefinition warnings from IO::All return if $done; require IO::All; IO::All->import( '-binary' ); require Capture::Tiny; Capture::Tiny->import ( 'capture' ); return; } } sub readme_from { my $self = shift; return unless $self->is_admin; _require_admin; # Input file my $in_file = shift || $self->_all_from or die "Can't determine file to make readme_from"; # Get optional arguments my ($clean, $format, $out_file, $options); my $args = shift; if ( ref $args ) { # Arguments are in a hashref if ( ref($args) ne 'HASH' ) { die "Expected a hashref but got a ".ref($args)."\n"; } else { $clean = $args->{'clean'}; $format = $args->{'format'}; $out_file = $args->{'output_file'}; $options = $args->{'options'}; } } else { # Arguments are in a list $clean = $args; $format = shift; $out_file = shift; $options = \@_; } # Default values; $clean ||= 0; $format ||= 'txt'; # Generate README print "readme_from $in_file to $format\n"; if ($format =~ m/te?xt/) { $out_file = $self->_readme_txt($in_file, $out_file, $options); } elsif ($format =~ m/html?/) { $out_file = $self->_readme_htm($in_file, $out_file, $options); } elsif ($format eq 'man') { $out_file = $self->_readme_man($in_file, $out_file, $options); } elsif ($format eq 'md') { $out_file = $self->_readme_md($in_file, $out_file, $options); } elsif ($format eq 'pdf') { $out_file = $self->_readme_pdf($in_file, $out_file, $options); } if ($clean) { $self->clean_files($out_file); } return 1; } sub _readme_txt { my ($self, $in_file, $out_file, $options) = @_; $out_file ||= 'README'; require Pod::Text; my $parser = Pod::Text->new( @$options ); my $io = io->file($out_file)->open(">"); my $out_fh = $io->io_handle; $parser->output_fh( *$out_fh ); $parser->parse_file( $in_file ); return $out_file; } sub _readme_htm { my ($self, $in_file, $out_file, $options) = @_; $out_file ||= 'README.htm'; require Pod::Html; my ($o) = capture { Pod::Html::pod2html( "--infile=$in_file", "--outfile=-", @$options, ); }; io->file($out_file)->print($o); # Remove temporary files if needed for my $file ('pod2htmd.tmp', 'pod2htmi.tmp') { if (-e $file) { unlink $file or warn "Warning: Could not remove file '$file'.\n$!\n"; } } return $out_file; } sub _readme_man { my ($self, $in_file, $out_file, $options) = @_; $out_file ||= 'README.1'; require Pod::Man; my $parser = Pod::Man->new( @$options ); my $io = io->file($out_file)->open(">"); my $out_fh = $io->io_handle; $parser->output_fh( *$out_fh ); $parser->parse_file( $in_file ); return $out_file; } sub _readme_pdf { my ($self, $in_file, $out_file, $options) = @_; $out_file ||= 'README.pdf'; eval { require App::pod2pdf; } or die "Could not generate $out_file because pod2pdf could not be found\n"; my $parser = App::pod2pdf->new( @$options ); $parser->parse_from_file($in_file); my ($o) = capture { $parser->output }; io->file($out_file)->print($o); return $out_file; } sub _readme_md { my ($self, $in_file, $out_file, $options) = @_; $out_file ||= 'README.md'; require Pod::Markdown; my $parser = Pod::Markdown->new( @$options ); my $io = io->file($out_file)->open(">"); my $out_fh = $io->io_handle; $parser->output_fh( *$out_fh ); $parser->parse_file( $in_file ); return $out_file; } sub _all_from { my $self = shift; return unless $self->admin->{extensions}; my ($metadata) = grep { ref($_) eq 'Module::Install::Metadata'; } @{$self->admin->{extensions}}; return unless $metadata; return $metadata->{values}{all_from} || ''; } 'Readme!'; __END__ #line 316 Starlet-0.31/inc/Module/Install/Win32.pm0000644RzZ);0000000340313023435277020010 0ustar kazuhokazuho#line 1 package Module::Install::Win32; use strict; use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { $VERSION = '1.16'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } # determine if the user needs nmake, and download it if needed sub check_nmake { my $self = shift; $self->load('can_run'); $self->load('get_file'); require Config; return unless ( $^O eq 'MSWin32' and $Config::Config{make} and $Config::Config{make} =~ /^nmake\b/i and ! $self->can_run('nmake') ); print "The required 'nmake' executable not found, fetching it...\n"; require File::Basename; my $rv = $self->get_file( url => 'http://download.microsoft.com/download/vc15/Patch/1.52/W95/EN-US/Nmake15.exe', ftp_url => 'ftp://ftp.microsoft.com/Softlib/MSLFILES/Nmake15.exe', local_dir => File::Basename::dirname($^X), size => 51928, run => 'Nmake15.exe /o > nul', check_for => 'Nmake.exe', remove => 1, ); die <<'END_MESSAGE' unless $rv; ------------------------------------------------------------------------------- Since you are using Microsoft Windows, you will need the 'nmake' utility before installation. It's available at: http://download.microsoft.com/download/vc15/Patch/1.52/W95/EN-US/Nmake15.exe or ftp://ftp.microsoft.com/Softlib/MSLFILES/Nmake15.exe Please download the file manually, save it to a directory in %PATH% (e.g. C:\WINDOWS\COMMAND\), then launch the MS-DOS command line shell, "cd" to that directory, and run "Nmake15.exe" from there; that will create the 'nmake.exe' file needed by this module. You may then resume the installation process described in README. ------------------------------------------------------------------------------- END_MESSAGE } 1; Starlet-0.31/inc/Module/Install/WriteAll.pm0000644RzZ);0000000237613023435277020641 0ustar kazuhokazuho#line 1 package Module::Install::WriteAll; use strict; use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { $VERSION = '1.16'; @ISA = qw{Module::Install::Base}; $ISCORE = 1; } sub WriteAll { my $self = shift; my %args = ( meta => 1, sign => 0, inline => 0, check_nmake => 1, @_, ); $self->sign(1) if $args{sign}; $self->admin->WriteAll(%args) if $self->is_admin; $self->check_nmake if $args{check_nmake}; unless ( $self->makemaker_args->{PL_FILES} ) { # XXX: This still may be a bit over-defensive... unless ($self->makemaker(6.25)) { $self->makemaker_args( PL_FILES => {} ) if -f 'Build.PL'; } } # Until ExtUtils::MakeMaker support MYMETA.yml, make sure # we clean it up properly ourself. $self->realclean_files('MYMETA.yml'); if ( $args{inline} ) { $self->Inline->write; } else { $self->Makefile->write; } # The Makefile write process adds a couple of dependencies, # so write the META.yml files after the Makefile. if ( $args{meta} ) { $self->Meta->write; } # Experimental support for MYMETA if ( $ENV{X_MYMETA} ) { if ( $ENV{X_MYMETA} eq 'JSON' ) { $self->Meta->write_mymeta_json; } else { $self->Meta->write_mymeta_yaml; } } return 1; } 1; Starlet-0.31/inc/Module/Install.pm0000644RzZ);0000003021713023435277017111 0ustar kazuhokazuho#line 1 package Module::Install; # For any maintainers: # The load order for Module::Install is a bit magic. # It goes something like this... # # IF ( host has Module::Install installed, creating author mode ) { # 1. Makefile.PL calls "use inc::Module::Install" # 2. $INC{inc/Module/Install.pm} set to installed version of inc::Module::Install # 3. The installed version of inc::Module::Install loads # 4. inc::Module::Install calls "require Module::Install" # 5. The ./inc/ version of Module::Install loads # } ELSE { # 1. Makefile.PL calls "use inc::Module::Install" # 2. $INC{inc/Module/Install.pm} set to ./inc/ version of Module::Install # 3. The ./inc/ version of Module::Install loads # } use 5.006; use strict 'vars'; use Cwd (); use File::Find (); use File::Path (); use vars qw{$VERSION $MAIN}; BEGIN { # All Module::Install core packages now require synchronised versions. # This will be used to ensure we don't accidentally load old or # different versions of modules. # This is not enforced yet, but will be some time in the next few # releases once we can make sure it won't clash with custom # Module::Install extensions. $VERSION = '1.16'; # Storage for the pseudo-singleton $MAIN = undef; *inc::Module::Install::VERSION = *VERSION; @inc::Module::Install::ISA = __PACKAGE__; } sub import { my $class = shift; my $self = $class->new(@_); my $who = $self->_caller; #------------------------------------------------------------- # all of the following checks should be included in import(), # to allow "eval 'require Module::Install; 1' to test # installation of Module::Install. (RT #51267) #------------------------------------------------------------- # Whether or not inc::Module::Install is actually loaded, the # $INC{inc/Module/Install.pm} is what will still get set as long as # the caller loaded module this in the documented manner. # If not set, the caller may NOT have loaded the bundled version, and thus # they may not have a MI version that works with the Makefile.PL. This would # result in false errors or unexpected behaviour. And we don't want that. my $file = join( '/', 'inc', split /::/, __PACKAGE__ ) . '.pm'; unless ( $INC{$file} ) { die <<"END_DIE" } Please invoke ${\__PACKAGE__} with: use inc::${\__PACKAGE__}; not: use ${\__PACKAGE__}; END_DIE # This reportedly fixes a rare Win32 UTC file time issue, but # as this is a non-cross-platform XS module not in the core, # we shouldn't really depend on it. See RT #24194 for detail. # (Also, this module only supports Perl 5.6 and above). eval "use Win32::UTCFileTime" if $^O eq 'MSWin32' && $] >= 5.006; # If the script that is loading Module::Install is from the future, # then make will detect this and cause it to re-run over and over # again. This is bad. Rather than taking action to touch it (which # is unreliable on some platforms and requires write permissions) # for now we should catch this and refuse to run. if ( -f $0 ) { my $s = (stat($0))[9]; # If the modification time is only slightly in the future, # sleep briefly to remove the problem. my $a = $s - time; if ( $a > 0 and $a < 5 ) { sleep 5 } # Too far in the future, throw an error. my $t = time; if ( $s > $t ) { die <<"END_DIE" } Your installer $0 has a modification time in the future ($s > $t). This is known to create infinite loops in make. Please correct this, then run $0 again. END_DIE } # Build.PL was formerly supported, but no longer is due to excessive # difficulty in implementing every single feature twice. if ( $0 =~ /Build.PL$/i ) { die <<"END_DIE" } Module::Install no longer supports Build.PL. It was impossible to maintain duel backends, and has been deprecated. Please remove all Build.PL files and only use the Makefile.PL installer. END_DIE #------------------------------------------------------------- # To save some more typing in Module::Install installers, every... # use inc::Module::Install # ...also acts as an implicit use strict. $^H |= strict::bits(qw(refs subs vars)); #------------------------------------------------------------- unless ( -f $self->{file} ) { foreach my $key (keys %INC) { delete $INC{$key} if $key =~ /Module\/Install/; } local $^W; require "$self->{path}/$self->{dispatch}.pm"; File::Path::mkpath("$self->{prefix}/$self->{author}"); $self->{admin} = "$self->{name}::$self->{dispatch}"->new( _top => $self ); $self->{admin}->init; @_ = ($class, _self => $self); goto &{"$self->{name}::import"}; } local $^W; *{"${who}::AUTOLOAD"} = $self->autoload; $self->preload; # Unregister loader and worker packages so subdirs can use them again delete $INC{'inc/Module/Install.pm'}; delete $INC{'Module/Install.pm'}; # Save to the singleton $MAIN = $self; return 1; } sub autoload { my $self = shift; my $who = $self->_caller; my $cwd = Cwd::getcwd(); my $sym = "${who}::AUTOLOAD"; $sym->{$cwd} = sub { my $pwd = Cwd::getcwd(); if ( my $code = $sym->{$pwd} ) { # Delegate back to parent dirs goto &$code unless $cwd eq $pwd; } unless ($$sym =~ s/([^:]+)$//) { # XXX: it looks like we can't retrieve the missing function # via $$sym (usually $main::AUTOLOAD) in this case. # I'm still wondering if we should slurp Makefile.PL to # get some context or not ... my ($package, $file, $line) = caller; die <<"EOT"; Unknown function is found at $file line $line. Execution of $file aborted due to runtime errors. If you're a contributor to a project, you may need to install some Module::Install extensions from CPAN (or other repository). If you're a user of a module, please contact the author. EOT } my $method = $1; if ( uc($method) eq $method ) { # Do nothing return; } elsif ( $method =~ /^_/ and $self->can($method) ) { # Dispatch to the root M:I class return $self->$method(@_); } # Dispatch to the appropriate plugin unshift @_, ( $self, $1 ); goto &{$self->can('call')}; }; } sub preload { my $self = shift; unless ( $self->{extensions} ) { $self->load_extensions( "$self->{prefix}/$self->{path}", $self ); } my @exts = @{$self->{extensions}}; unless ( @exts ) { @exts = $self->{admin}->load_all_extensions; } my %seen; foreach my $obj ( @exts ) { while (my ($method, $glob) = each %{ref($obj) . '::'}) { next unless $obj->can($method); next if $method =~ /^_/; next if $method eq uc($method); $seen{$method}++; } } my $who = $self->_caller; foreach my $name ( sort keys %seen ) { local $^W; *{"${who}::$name"} = sub { ${"${who}::AUTOLOAD"} = "${who}::$name"; goto &{"${who}::AUTOLOAD"}; }; } } sub new { my ($class, %args) = @_; delete $INC{'FindBin.pm'}; { # to suppress the redefine warning local $SIG{__WARN__} = sub {}; require FindBin; } # ignore the prefix on extension modules built from top level. my $base_path = Cwd::abs_path($FindBin::Bin); unless ( Cwd::abs_path(Cwd::getcwd()) eq $base_path ) { delete $args{prefix}; } return $args{_self} if $args{_self}; $args{dispatch} ||= 'Admin'; $args{prefix} ||= 'inc'; $args{author} ||= ($^O eq 'VMS' ? '_author' : '.author'); $args{bundle} ||= 'inc/BUNDLES'; $args{base} ||= $base_path; $class =~ s/^\Q$args{prefix}\E:://; $args{name} ||= $class; $args{version} ||= $class->VERSION; unless ( $args{path} ) { $args{path} = $args{name}; $args{path} =~ s!::!/!g; } $args{file} ||= "$args{base}/$args{prefix}/$args{path}.pm"; $args{wrote} = 0; bless( \%args, $class ); } sub call { my ($self, $method) = @_; my $obj = $self->load($method) or return; splice(@_, 0, 2, $obj); goto &{$obj->can($method)}; } sub load { my ($self, $method) = @_; $self->load_extensions( "$self->{prefix}/$self->{path}", $self ) unless $self->{extensions}; foreach my $obj (@{$self->{extensions}}) { return $obj if $obj->can($method); } my $admin = $self->{admin} or die <<"END_DIE"; The '$method' method does not exist in the '$self->{prefix}' path! Please remove the '$self->{prefix}' directory and run $0 again to load it. END_DIE my $obj = $admin->load($method, 1); push @{$self->{extensions}}, $obj; $obj; } sub load_extensions { my ($self, $path, $top) = @_; my $should_reload = 0; unless ( grep { ! ref $_ and lc $_ eq lc $self->{prefix} } @INC ) { unshift @INC, $self->{prefix}; $should_reload = 1; } foreach my $rv ( $self->find_extensions($path) ) { my ($file, $pkg) = @{$rv}; next if $self->{pathnames}{$pkg}; local $@; my $new = eval { local $^W; require $file; $pkg->can('new') }; unless ( $new ) { warn $@ if $@; next; } $self->{pathnames}{$pkg} = $should_reload ? delete $INC{$file} : $INC{$file}; push @{$self->{extensions}}, &{$new}($pkg, _top => $top ); } $self->{extensions} ||= []; } sub find_extensions { my ($self, $path) = @_; my @found; File::Find::find( sub { my $file = $File::Find::name; return unless $file =~ m!^\Q$path\E/(.+)\.pm\Z!is; my $subpath = $1; return if lc($subpath) eq lc($self->{dispatch}); $file = "$self->{path}/$subpath.pm"; my $pkg = "$self->{name}::$subpath"; $pkg =~ s!/!::!g; # If we have a mixed-case package name, assume case has been preserved # correctly. Otherwise, root through the file to locate the case-preserved # version of the package name. if ( $subpath eq lc($subpath) || $subpath eq uc($subpath) ) { my $content = Module::Install::_read($subpath . '.pm'); my $in_pod = 0; foreach ( split /\n/, $content ) { $in_pod = 1 if /^=\w/; $in_pod = 0 if /^=cut/; next if ($in_pod || /^=cut/); # skip pod text next if /^\s*#/; # and comments if ( m/^\s*package\s+($pkg)\s*;/i ) { $pkg = $1; last; } } } push @found, [ $file, $pkg ]; }, $path ) if -d $path; @found; } ##################################################################### # Common Utility Functions sub _caller { my $depth = 0; my $call = caller($depth); while ( $call eq __PACKAGE__ ) { $depth++; $call = caller($depth); } return $call; } # Done in evals to avoid confusing Perl::MinimumVersion eval( $] >= 5.006 ? <<'END_NEW' : <<'END_OLD' ); die $@ if $@; sub _read { local *FH; open( FH, '<', $_[0] ) or die "open($_[0]): $!"; binmode FH; my $string = do { local $/; }; close FH or die "close($_[0]): $!"; return $string; } END_NEW sub _read { local *FH; open( FH, "< $_[0]" ) or die "open($_[0]): $!"; binmode FH; my $string = do { local $/; }; close FH or die "close($_[0]): $!"; return $string; } END_OLD sub _readperl { my $string = Module::Install::_read($_[0]); $string =~ s/(?:\015{1,2}\012|\015|\012)/\n/sg; $string =~ s/(\n)\n*__(?:DATA|END)__\b.*\z/$1/s; $string =~ s/\n\n=\w+.+?\n\n=cut\b.+?\n+/\n\n/sg; return $string; } sub _readpod { my $string = Module::Install::_read($_[0]); $string =~ s/(?:\015{1,2}\012|\015|\012)/\n/sg; return $string if $_[0] =~ /\.pod\z/; $string =~ s/(^|\n=cut\b.+?\n+)[^=\s].+?\n(\n=\w+|\z)/$1$2/sg; $string =~ s/\n*=pod\b[^\n]*\n+/\n\n/sg; $string =~ s/\n*=cut\b[^\n]*\n+/\n\n/sg; $string =~ s/^\n+//s; return $string; } # Done in evals to avoid confusing Perl::MinimumVersion eval( $] >= 5.006 ? <<'END_NEW' : <<'END_OLD' ); die $@ if $@; sub _write { local *FH; open( FH, '>', $_[0] ) or die "open($_[0]): $!"; binmode FH; foreach ( 1 .. $#_ ) { print FH $_[$_] or die "print($_[0]): $!"; } close FH or die "close($_[0]): $!"; } END_NEW sub _write { local *FH; open( FH, "> $_[0]" ) or die "open($_[0]): $!"; binmode FH; foreach ( 1 .. $#_ ) { print FH $_[$_] or die "print($_[0]): $!"; } close FH or die "close($_[0]): $!"; } END_OLD # _version is for processing module versions (eg, 1.03_05) not # Perl versions (eg, 5.8.1). sub _version { my $s = shift || 0; my $d =()= $s =~ /(\.)/g; if ( $d >= 2 ) { # Normalise multipart versions $s =~ s/(\.)(\d{1,3})/sprintf("$1%03d",$2)/eg; } $s =~ s/^(\d+)\.?//; my $l = $1 || 0; my @v = map { $_ . '0' x (3 - length $_) } $s =~ /(\d{1,3})\D?/g; $l = $l . '.' . join '', @v if @v; return $l + 0; } sub _cmp { _version($_[1]) <=> _version($_[2]); } # Cloned from Params::Util::_CLASS sub _CLASS { ( defined $_[0] and ! ref $_[0] and $_[0] =~ m/^[^\W\d]\w*(?:::\w+)*\z/s ) ? $_[0] : undef; } 1; # Copyright 2008 - 2012 Adam Kennedy. Starlet-0.31/lib/0000755RzZ);0000000000013023435376013712 5ustar kazuhokazuhoStarlet-0.31/lib/Plack/0000755RzZ);0000000000013023435376014744 5ustar kazuhokazuhoStarlet-0.31/lib/Plack/Handler/0000755RzZ);0000000000013023435376016321 5ustar kazuhokazuhoStarlet-0.31/lib/Plack/Handler/Starlet.pm0000644RzZ);0000000641113023430575020273 0ustar kazuhokazuhopackage Plack::Handler::Starlet; use strict; use warnings; use Parallel::Prefork; use Server::Starter (); use base qw(Starlet::Server); sub new { my ($klass, %args) = @_; # setup before instantiation if (defined $ENV{SERVER_STARTER_PORT}) { $args{listens} = []; my $server_ports = Server::Starter::server_ports(); for my $hostport (keys %$server_ports) { my $fd = $server_ports->{$hostport}; my $listen = {}; if ($hostport =~ /(.*):(\d+)/) { $listen->{host} = $1; $listen->{port} = $2; } else { $listen->{port} = $hostport; } $listen->{sock} = IO::Socket::INET->new( Proto => 'tcp', ) or die "failed to create socket:$!"; $listen->{sock}->fdopen($fd, 'w') or die "failed to bind to listening socket:$!"; unless (@{$args{listens}}) { $args{host} = $listen->{host}; $args{port} = $listen->{port}; } $args{listens}[$fd] = $listen; } } my $max_workers = 10; for (qw(max_workers workers)) { $max_workers = delete $args{$_} if defined $args{$_}; } if ($args{child_exit}) { $args{child_exit} = eval $args{child_exit} unless ref($args{child_exit}); die "child_exit is defined but not a code block" if ref($args{child_exit}) ne 'CODE'; } # instantiate and set the variables my $self = $klass->SUPER::new(%args); $self->{is_multiprocess} = 1; $self->{max_workers} = $max_workers; $self; } sub run { my($self, $app) = @_; $self->setup_listener(); if ($self->{max_workers} != 0) { # use Parallel::Prefork my %pm_args = ( max_workers => $self->{max_workers}, trap_signals => { TERM => 'TERM', HUP => 'TERM', }, ); if (defined $self->{spawn_interval}) { $pm_args{trap_signals}{USR1} = [ 'TERM', $self->{spawn_interval} ]; $pm_args{spawn_interval} = $self->{spawn_interval}; } if (defined $self->{err_respawn_interval}) { $pm_args{err_respawn_interval} = $self->{err_respawn_interval}; } my $pm = Parallel::Prefork->new(\%pm_args); while ($pm->signal_received !~ /^(TERM|USR1)$/) { $pm->start and next; srand((rand() * 2 ** 30) ^ $$ ^ time); $self->accept_loop($app, $self->_calc_reqs_per_child()); $pm->finish; } my $timeout = 1; if ($self->{spawn_interval}) { $timeout = $self->{spawn_interval} * $self->{max_workers} } while ($pm->wait_all_children($timeout)) { $pm->signal_all_children('TERM'); } } else { # run directly, mainly for debugging local $SIG{TERM} = sub { exit 0; }; while (1) { $self->accept_loop($app, $self->_calc_reqs_per_child()); } } } sub _calc_reqs_per_child { my $self = shift; my $max = $self->{max_reqs_per_child}; if (my $min = $self->{min_reqs_per_child}) { return $max - int(($max - $min + 1) * rand); } else { return $max; } } 1; Starlet-0.31/lib/Starlet/0000755RzZ);0000000000013023435376015330 5ustar kazuhokazuhoStarlet-0.31/lib/Starlet/Server.pm0000644RzZ);0000004756513023430602017140 0ustar kazuhokazuhopackage Starlet::Server; use strict; use warnings; use Carp (); use Plack; use Plack::HTTPParser qw( parse_http_request ); use IO::Socket::INET; use HTTP::Date; use HTTP::Status; use List::Util qw(max sum); use Plack::Util; use Plack::TempBuffer; use POSIX qw(EINTR EAGAIN EWOULDBLOCK); use Socket qw(IPPROTO_TCP TCP_NODELAY); use File::Temp qw(tempfile); use Fcntl qw(:flock); use Try::Tiny; use Time::HiRes qw(time); use constant MAX_REQUEST_SIZE => 131072; use constant CHUNKSIZE => 64 * 1024; use constant MSWin32 => $^O eq 'MSWin32'; my $null_io = do { open my $io, "<", \""; $io }; sub new { my($class, %args) = @_; my $self = bless { listens => $args{listens} || [], host => $args{host} || 0, port => $args{port} || $args{socket} || 8080, timeout => $args{timeout} || 300, keepalive_timeout => $args{keepalive_timeout} || 2, max_keepalive_reqs => $args{max_keepalive_reqs} || 1, server_software => $args{server_software} || $class, server_ready => $args{server_ready} || sub {}, min_reqs_per_child => ( defined $args{min_reqs_per_child} ? $args{min_reqs_per_child} : undef, ), max_reqs_per_child => ( $args{max_reqs_per_child} || $args{max_requests} || 100, ), spawn_interval => $args{spawn_interval} || 0, err_respawn_interval => ( defined $args{err_respawn_interval} ? $args{err_respawn_interval} : undef, ), is_multiprocess => Plack::Util::FALSE, child_exit => $args{child_exit} || sub {}, _using_defer_accept => undef, }, $class; if ($args{max_workers} && $args{max_workers} > 1) { Carp::carp( "Preforking in $class is deprecated. Falling back to the non-forking mode. ", "If you need preforking, use Starman or Starlet instead and run like `plackup -s Starlet`", ); } $self; } sub run { my($self, $app) = @_; $self->setup_listener(); $self->accept_loop($app); } sub setup_listener { my $self = shift; if (scalar(grep {defined $_} @{$self->{listens}}) == 0) { my $sock; if ($self->{port} =~ /^[0-9]+$/s) { $sock = IO::Socket::INET->new( Listen => SOMAXCONN, LocalPort => $self->{port}, LocalAddr => $self->{host}, Proto => 'tcp', ReuseAddr => 1, ) or die "failed to listen to port $self->{port}:$!"; } else { $sock = IO::Socket::UNIX->new( Listen => SOMAXCONN, Local => $self->{port}, ) or die "failed to listen to socket $self->{port}:$!"; } $self->{listens}[fileno($sock)] = { host => $self->{host}, port => $self->{port}, sock => $sock, }; } my @listens = grep {defined $_} @{$self->{listens}}; for my $listen (@listens) { my $family = Socket::sockaddr_family(getsockname($listen->{sock})); $listen->{_is_tcp} = $family != AF_UNIX; # set defer accept if ($^O eq 'linux' && $listen->{_is_tcp}) { setsockopt($listen->{sock}, IPPROTO_TCP, 9, 1) and $listen->{_using_defer_accept} = 1; } } if (scalar(@listens) > 1) { $self->{lock_path} ||= do { my ($fh, $lock_path) = tempfile(UNLINK => 1); # closing the file handle explicitly for two reasons # 1) tempfile retains the handle when UNLINK is set # 2) tempfile implicitely locks the file on OS X close $fh; $lock_path; }; } $self->{server_ready}->($self); } sub accept_loop { # TODO handle $max_reqs_per_child my($self, $app, $max_reqs_per_child) = @_; my $proc_req_count = 0; my $is_keepalive = 0; local $SIG{TERM} = sub { $self->{term_received} = 1; }; local $SIG{PIPE} = 'IGNORE'; my $acceptor = $self->_get_acceptor; while (! defined $max_reqs_per_child || $proc_req_count < $max_reqs_per_child) { # accept (or exit on SIGTERM) if ($self->{term_received}) { $self->{child_exit}->($self, $app); exit 0; } my ($conn, $peer, $listen) = $acceptor->(); next unless $conn; $self->{_is_deferred_accept} = $listen->{_using_defer_accept}; defined($conn->blocking(0)) or die "failed to set socket to nonblocking mode:$!"; my ($peerport, $peerhost, $peeraddr) = (0, undef, undef); if ($listen->{_is_tcp}) { $conn->setsockopt(IPPROTO_TCP, TCP_NODELAY, 1) or die "setsockopt(TCP_NODELAY) failed:$!"; ($peerport, $peerhost) = unpack_sockaddr_in $peer; $peeraddr = inet_ntoa($peerhost); } my $req_count = 0; my $pipelined_buf = ''; while (1) { ++$req_count; ++$proc_req_count; my $env = { SERVER_PORT => $listen->{port} || 0, SERVER_NAME => $listen->{host} || 0, SCRIPT_NAME => '', REMOTE_ADDR => $peeraddr, REMOTE_PORT => $peerport, 'psgi.version' => [ 1, 1 ], 'psgi.errors' => *STDERR, 'psgi.url_scheme' => 'http', 'psgi.run_once' => Plack::Util::FALSE, 'psgi.multithread' => Plack::Util::FALSE, 'psgi.multiprocess' => $self->{is_multiprocess}, 'psgi.streaming' => Plack::Util::TRUE, 'psgi.nonblocking' => Plack::Util::FALSE, 'psgix.input.buffered' => Plack::Util::TRUE, 'psgix.io' => $conn, 'psgix.harakiri' => 1, 'psgix.informational' => sub { $self->_informational($conn, @_); }, }; my $may_keepalive = $req_count < $self->{max_keepalive_reqs}; if ($may_keepalive && $max_reqs_per_child && $proc_req_count >= $max_reqs_per_child) { $may_keepalive = undef; } $may_keepalive = 1 if length $pipelined_buf; my $keepalive; ($keepalive, $pipelined_buf) = $self->handle_connection($env, $conn, $app, $may_keepalive, $req_count != 1, $pipelined_buf); if ($env->{'psgix.harakiri.commit'}) { $conn->close; return; } last unless $keepalive; # TODO add special cases for clients with broken keep-alive support, as well as disabling keep-alive for HTTP/1.0 proxies } $conn->close; } } sub _get_acceptor { my $self = shift; my @listens = grep {defined $_} @{$self->{listens}}; if (scalar(@listens) == 1) { my $listen = $listens[0]; return sub { if (my ($conn, $peer) = $listen->{sock}->accept) { return ($conn, $peer, $listen); } return +(); }; } else { # wait for multiple sockets with select(2) my @fds; my $rin = ''; for my $listen (@listens) { defined($listen->{sock}->blocking(0)) or die "failed to set listening socket to non-blocking mode:$!"; my $fd = fileno($listen->{sock}); push @fds, $fd; vec($rin, $fd, 1) = 1; } open(my $lock_fh, '>', $self->{lock_path}) or die "failed to open lock file:@{[$self->{lock_path}]}:$!"; return sub { if (! flock($lock_fh, LOCK_EX)) { die "failed to lock file:@{[$self->{lock_path}]}:$!" if $! != EINTR; return +(); } my $nfound = select(my $rout = $rin, undef, undef, undef); for (my $i = 0; $nfound > 0; ++$i) { my $fd = $fds[$i]; next unless vec($rout, $fd, 1); --$nfound; my $listen = $self->{listens}[$fd]; if (my ($conn, $peer) = $listen->{sock}->accept) { flock($lock_fh, LOCK_UN); return ($conn, $peer, $listen); } } flock($lock_fh, LOCK_UN); return +(); }; } } my $bad_response = [ 400, [ 'Content-Type' => 'text/plain', 'Connection' => 'close' ], [ 'Bad Request' ] ]; sub handle_connection { my($self, $env, $conn, $app, $use_keepalive, $is_keepalive, $prebuf) = @_; my $buf = ''; my $pipelined_buf=''; my $res = $bad_response; while (1) { my $rlen; if ( $rlen = length $prebuf ) { $buf = $prebuf; undef $prebuf; } else { $rlen = $self->read_timeout( $conn, \$buf, MAX_REQUEST_SIZE - length($buf), length($buf), $is_keepalive ? $self->{keepalive_timeout} : $self->{timeout}, ) or return; } my $reqlen = parse_http_request($buf, $env); if ($reqlen >= 0) { # handle request my $protocol = $env->{SERVER_PROTOCOL}; if ($use_keepalive) { if ($self->{term_received}) { $use_keepalive = undef; } elsif ( $protocol eq 'HTTP/1.1' ) { if (my $c = $env->{HTTP_CONNECTION}) { $use_keepalive = undef if $c =~ /^\s*close\s*/i; } } else { if (my $c = $env->{HTTP_CONNECTION}) { $use_keepalive = undef unless $c =~ /^\s*keep-alive\s*/i; } else { $use_keepalive = undef; } } } $buf = substr $buf, $reqlen; my $chunked = do { no warnings; lc delete $env->{HTTP_TRANSFER_ENCODING} eq 'chunked' }; if ( $env->{HTTP_EXPECT} ) { if ( lc $env->{HTTP_EXPECT} eq '100-continue' ) { $self->write_all($conn, "HTTP/1.1 100 Continue\015\012\015\012") or return; } else { $res = [417,[ 'Content-Type' => 'text/plain', 'Connection' => 'close' ], [ 'Expectation Failed' ] ]; last; } } if (my $cl = $env->{CONTENT_LENGTH}) { my $buffer = Plack::TempBuffer->new($cl); while ($cl > 0) { my $chunk; if (length $buf) { $chunk = $buf; $buf = ''; } else { $self->read_timeout( $conn, \$chunk, $cl, 0, $self->{timeout}) or return; } $buffer->print($chunk); $cl -= length $chunk; } $env->{'psgi.input'} = $buffer->rewind; } elsif ($chunked) { my $buffer = Plack::TempBuffer->new; my $chunk_buffer = ''; my $length; DECHUNK: while(1) { my $chunk; if ( length $buf ) { $chunk = $buf; $buf = ''; } else { $self->read_timeout($conn, \$chunk, CHUNKSIZE, 0, $self->{timeout}) or return; } $chunk_buffer .= $chunk; while ( $chunk_buffer =~ s/^(([0-9a-fA-F]+).*\015\012)// ) { my $trailer = $1; my $chunk_len = hex $2; if ($chunk_len == 0) { last DECHUNK; } elsif (length $chunk_buffer < $chunk_len + 2) { $chunk_buffer = $trailer . $chunk_buffer; last; } $buffer->print(substr $chunk_buffer, 0, $chunk_len, ''); $chunk_buffer =~ s/^\015\012//; $length += $chunk_len; } } $env->{CONTENT_LENGTH} = $length; $env->{'psgi.input'} = $buffer->rewind; } else { if ( $buf =~ m!^(?:GET|HEAD)! ) { #pipeline $pipelined_buf = $buf; $use_keepalive = 1; #force keepalive } # else clear buffer $env->{'psgi.input'} = $null_io; } $res = Plack::Util::run_app $app, $env; last; } if ($reqlen == -2) { # request is incomplete, do nothing } elsif ($reqlen == -1) { # error, close conn last; } } if (ref $res eq 'ARRAY') { $self->_handle_response($env->{SERVER_PROTOCOL}, $res, $conn, \$use_keepalive); } elsif (ref $res eq 'CODE') { $res->(sub { $self->_handle_response($env->{SERVER_PROTOCOL}, $_[0], $conn, \$use_keepalive); }); } else { die "Bad response $res"; } return ($use_keepalive, $pipelined_buf); } sub _informational { my ($self, $conn, $status_code, $headers) = @_; my @lines = "HTTP/1.1 $status_code @{[ HTTP::Status::status_message($status_code) ]}\015\012"; for (my $i = 0; $i < @$headers; $i += 2) { my $k = $headers->[$i]; my $v = $headers->[$i + 1]; push @lines, "$k: $v\015\012"; } push @lines, "\015\012"; $self->write_all($conn, join("", @lines), $self->{timeout}); } sub _handle_response { my($self, $protocol, $res, $conn, $use_keepalive_r) = @_; my $status_code = $res->[0]; my $headers = $res->[1]; my $body = $res->[2]; my @lines; my %send_headers; for (my $i = 0; $i < @$headers; $i += 2) { my $k = $headers->[$i]; my $v = $headers->[$i + 1]; my $lck = lc $k; if ($lck eq 'connection') { $$use_keepalive_r = undef if $$use_keepalive_r && lc $v ne 'keep-alive'; } else { push @lines, "$k: $v\015\012"; $send_headers{$lck} = $v; } } if ( ! exists $send_headers{server} ) { unshift @lines, "Server: $self->{server_software}\015\012"; } if ( ! exists $send_headers{date} ) { unshift @lines, "Date: @{[HTTP::Date::time2str()]}\015\012"; } # try to set content-length when keepalive can be used, or disable it my $use_chunked; if (defined($protocol) && $protocol eq 'HTTP/1.1') { if (defined $send_headers{'content-length'} || defined $send_headers{'transfer-encoding'}) { # ok } elsif (!Plack::Util::status_with_no_entity_body($status_code)) { push @lines, "Transfer-Encoding: chunked\015\012"; $use_chunked = 1; } push @lines, "Connection: close\015\012" unless $$use_keepalive_r; } else { # HTTP/1.0 if ($$use_keepalive_r) { if (defined $send_headers{'content-length'} || defined $send_headers{'transfer-encoding'}) { # ok } elsif (!Plack::Util::status_with_no_entity_body($status_code) && defined(my $cl = Plack::Util::content_length($body))) { push @lines, "Content-Length: $cl\015\012"; } else { $$use_keepalive_r = undef; } } push @lines, "Connection: keep-alive\015\012" if $$use_keepalive_r; push @lines, "Connection: close\015\012" if !$$use_keepalive_r; #fmm.. } unshift @lines, "HTTP/1.1 $status_code @{[ HTTP::Status::status_message($status_code) ]}\015\012"; push @lines, "\015\012"; if (defined $body && ref $body eq 'ARRAY' && @$body == 1 && length $body->[0] < 8192) { # combine response header and small request body my $buf = $body->[0]; if ($use_chunked ) { my $len = length $buf; $buf = sprintf("%x",$len) . "\015\012" . $buf . "\015\012" . '0' . "\015\012\015\012"; } $self->write_all( $conn, join('', @lines, $buf), $self->{timeout}, ); return; } $self->write_all($conn, join('', @lines), $self->{timeout}) or return; if (defined $body) { my $failed; my $completed; my $body_count = (ref $body eq 'ARRAY') ? $#{$body} + 1 : -1; Plack::Util::foreach( $body, sub { unless ($failed) { my $buf = $_[0]; --$body_count; if ( $use_chunked ) { my $len = length $buf; return unless $len; $buf = sprintf("%x",$len) . "\015\012" . $buf . "\015\012"; if ( $body_count == 0 ) { $buf .= '0' . "\015\012\015\012"; $completed = 1; } } $self->write_all($conn, $buf, $self->{timeout}) or $failed = 1; } }, ); $self->write_all($conn, '0' . "\015\012\015\012", $self->{timeout}) if $use_chunked && !$completed; } else { return Plack::Util::inline_object write => sub { my $buf = $_[0]; if ( $use_chunked ) { my $len = length $buf; return unless $len; $buf = sprintf("%x",$len) . "\015\012" . $buf . "\015\012" } $self->write_all($conn, $buf, $self->{timeout}) }, close => sub { $self->write_all($conn, '0' . "\015\012\015\012", $self->{timeout}) if $use_chunked; }; } } # returns value returned by $cb, or undef on timeout or network error sub do_io { my ($self, $is_write, $sock, $buf, $len, $off, $timeout) = @_; my $ret; unless ($is_write || delete $self->{_is_deferred_accept}) { goto DO_SELECT; } DO_READWRITE: # try to do the IO if ($is_write) { $ret = syswrite $sock, $buf, $len, $off and return $ret; } else { $ret = sysread $sock, $$buf, $len, $off and return $ret; } unless ((! defined($ret) && ($! == EINTR || $! == EAGAIN || $! == EWOULDBLOCK))) { return; } # wait for data DO_SELECT: while (1) { my ($rfd, $wfd); my $efd = ''; vec($efd, fileno($sock), 1) = 1; if ($is_write) { ($rfd, $wfd) = ('', $efd); } else { ($rfd, $wfd) = ($efd, ''); } my $start_at = time; my $nfound = select($rfd, $wfd, $efd, $timeout); $timeout -= (time - $start_at); last if $nfound; return if $timeout <= 0; } goto DO_READWRITE; } # returns (positive) number of bytes read, or undef if the socket is to be closed sub read_timeout { my ($self, $sock, $buf, $len, $off, $timeout) = @_; $self->do_io(undef, $sock, $buf, $len, $off, $timeout); } # returns (positive) number of bytes written, or undef if the socket is to be closed sub write_timeout { my ($self, $sock, $buf, $len, $off, $timeout) = @_; $self->do_io(1, $sock, $buf, $len, $off, $timeout); } # writes all data in buf and returns number of bytes written or undef if failed sub write_all { my ($self, $sock, $buf, $timeout) = @_; my $off = 0; while (my $len = length($buf) - $off) { my $ret = $self->write_timeout($sock, $buf, $len, $off, $timeout) or return; $off += $ret; } return length $buf; } 1; Starlet-0.31/lib/Starlet.pm0000644RzZ);0000000633513023435226015667 0ustar kazuhokazuhopackage Starlet; use 5.008_001; our $VERSION = '0.31'; 1; __END__ =head1 NAME Starlet - a simple, high-performance PSGI/Plack HTTP server =head1 SYNOPSIS % start_server --port=80 -- plackup -s Starlet [options] your-app.psgi or if you do not need hot deploy, % plackup -s Starlet --port=80 [options] your-app.psgi =head1 DESCRIPTION Starlet is a standalone HTTP/1.1 web server, formerly known as L and L. The server supports following features, and is suitable for running HTTP application servers behind a reverse proxy. - prefork and graceful shutdown using L - hot deploy using L - fast HTTP processing using L (optional) =head1 COMMAND LINE OPTIONS In addition to the options supported by L, Starlet accepts following options(s). =head2 --max-workers=# number of worker processes (default: 10) =head2 --timeout=# seconds until timeout (default: 300) =head2 --keepalive-timeout=# timeout for persistent connections (default: 2) =head2 --max-keepalive-reqs=# max. number of requests allowed per single persistent connection. If set to one, persistent connections are disabled (default: 1) =head2 --max-reqs-per-child=# max. number of requests to be handled before a worker process exits (default: 100) =head2 --min-reqs-per-child=# if set, randomizes the number of requests handled by a single worker process between the value and that supplied by C<--max-reqs-per-chlid> (default: none) =head2 --spawn-interval=# 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". See http://blog.kazuhooku.com/2011/04/web-serverstarter-parallelprefork.html for more information. (default: none) =head2 --child-exit=s the subroutine code to be executed right before a child process exits. e.g. C<--child-exit='sub { POSIX::_exit(0) }'>. (default: none) =head1 Extensions to PSGI =head2 psgix.informational Starlets exposes a callback named C that can be used for sending an informational response. The callback accepts two arguments, the first argument being the status code and the second being an arrayref of the headers to be sent. Example below sends an 103 response before processing the request to build a final response. sub { my $env = shift; $env["psgix.informational"}->(103, [ 'link' => '; rel=preload' ]); my $resp = ... application logic ... $resp; } =head1 NOTES L is designed and implemented to be simple, secure and fast, especially for running as an HTTP application server running behind a reverse proxy. It only depends on a minimal number of well-designed (and well-focused) modules. =head1 SEE ALSO L L L =head1 AUTHOR Kazuho Oku miyagawa kazeburo Tomohiro Takezawa =head1 LICENSE This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See L =cut Starlet-0.31/Makefile.PL0000644RzZ);0000000046712716541665015134 0ustar kazuhokazuhouse inc::Module::Install; all_from 'lib/Starlet.pm'; readme_from 'lib/Starlet.pm'; requires 'Plack' => 0.9920; requires 'Parallel::Prefork' => 0.17; requires 'Server::Starter' => 0.06; test_requires 'Test::More' => 0.88; test_requires 'Test::TCP' => 2.10; test_requires 'LWP::UserAgent' => 5.80; WriteAll; Starlet-0.31/MANIFEST0000644RzZ);0000000135712726421313014276 0ustar kazuhokazuho.gitignore Changes inc/Module/Install.pm inc/Module/Install/Base.pm inc/Module/Install/Can.pm inc/Module/Install/Fetch.pm inc/Module/Install/Makefile.pm inc/Module/Install/Metadata.pm inc/Module/Install/ReadmeFromPod.pm inc/Module/Install/Win32.pm inc/Module/Install/WriteAll.pm lib/Plack/Handler/Starlet.pm lib/Starlet.pm lib/Starlet/Server.pm Makefile.PL MANIFEST This list of files META.yml MYMETA.json MYMETA.yml README t/00base-hello.psgi t/00base.t t/01plack-test.t t/02graceful.t t/03post.t t/04-bumpy-life.t t/05server-header.t t/06harakiri.t t/07remote_port.t t/08chunked_req.t t/09chunked_zero_length.t t/10unix_domain_socket.t t/11multi-sockets.t t/12bad_request_line.t t/13spawn_interval.t t/14child_finish_hook.t t/assets/baybridge.jpg Starlet-0.31/META.yml0000644RzZ);0000000123213023435277014413 0ustar kazuhokazuho--- abstract: 'a simple, high-performance PSGI/Plack HTTP server' author: - 'Kazuho Oku' build_requires: ExtUtils::MakeMaker: 6.59 LWP::UserAgent: 5.8 Test::More: 0.88 Test::TCP: 2.1 configure_requires: ExtUtils::MakeMaker: 6.59 distribution_type: module dynamic_config: 1 generated_by: 'Module::Install version 1.16' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: 1.4 module_name: Starlet name: Starlet no_index: directory: - inc - t requires: Parallel::Prefork: 0.17 Plack: 0.992 Server::Starter: 0.06 perl: 5.8.1 resources: license: http://dev.perl.org/licenses/ version: '0.31' Starlet-0.31/MYMETA.json0000644RzZ);0000000237213023435324015030 0ustar kazuhokazuho{ "abstract" : "a simple, high-performance PSGI/Plack HTTP server", "author" : [ "Kazuho Oku" ], "dynamic_config" : 0, "generated_by" : "Module::Install version 1.16, CPAN::Meta::Converter version 2.150005", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Starlet", "no_index" : { "directory" : [ "inc", "t" ] }, "prereqs" : { "build" : { "requires" : { "ExtUtils::MakeMaker" : "6.59", "LWP::UserAgent" : "5.8", "Test::More" : "0.88", "Test::TCP" : "2.1" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "runtime" : { "requires" : { "Parallel::Prefork" : "0.17", "Plack" : "0.992", "Server::Starter" : "0.06", "perl" : "5.008001" } } }, "release_status" : "stable", "resources" : { "license" : [ "http://dev.perl.org/licenses/" ] }, "version" : "0.31", "x_module_name" : "Starlet", "x_serialization_backend" : "JSON::PP version 2.27300" } Starlet-0.31/MYMETA.yml0000644RzZ);0000000137013023435324014655 0ustar kazuhokazuho--- abstract: 'a simple, high-performance PSGI/Plack HTTP server' author: - 'Kazuho Oku' build_requires: ExtUtils::MakeMaker: '6.59' LWP::UserAgent: '5.8' Test::More: '0.88' Test::TCP: '2.1' configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 generated_by: 'Module::Install version 1.16, CPAN::Meta::Converter version 2.150005' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: Starlet no_index: directory: - inc - t requires: Parallel::Prefork: '0.17' Plack: '0.992' Server::Starter: '0.06' perl: '5.008001' resources: license: http://dev.perl.org/licenses/ version: '0.31' x_module_name: Starlet x_serialization_backend: 'CPAN::Meta::YAML version 0.018' Starlet-0.31/README0000644RzZ);0000000631713023435277014033 0ustar kazuhokazuhoNAME Starlet - a simple, high-performance PSGI/Plack HTTP server SYNOPSIS % start_server --port=80 -- plackup -s Starlet [options] your-app.psgi or if you do not need hot deploy, % plackup -s Starlet --port=80 [options] your-app.psgi DESCRIPTION Starlet is a standalone HTTP/1.1 web server, formerly known as Plack::Server::Standalone::Prefork and Plack::Server::Standalone::Prefork::Server::Starter. The server supports following features, and is suitable for running HTTP application servers behind a reverse proxy. - prefork and graceful shutdown using Parallel::Prefork - hot deploy using Server::Starter - fast HTTP processing using HTTP::Parser::XS (optional) COMMAND LINE OPTIONS In addition to the options supported by plackup, Starlet accepts following options(s). --max-workers=# number of worker processes (default: 10) --timeout=# seconds until timeout (default: 300) --keepalive-timeout=# timeout for persistent connections (default: 2) --max-keepalive-reqs=# max. number of requests allowed per single persistent connection. If set to one, persistent connections are disabled (default: 1) --max-reqs-per-child=# max. number of requests to be handled before a worker process exits (default: 100) --min-reqs-per-child=# 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) --spawn-interval=# 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". See http://blog.kazuhooku.com/2011/04/web-serverstarter-parallelprefork.html for more information. (default: none) --child-exit=s the subroutine code to be executed right before a child process exits. e.g. "--child-exit='sub { POSIX::_exit(0) }'". (default: none) Extensions to PSGI psgix.informational Starlets exposes a callback named "psgix.informational" that can be used for sending an informational response. The callback accepts two arguments, the first argument being the status code and the second being an arrayref of the headers to be sent. Example below sends an 103 response before processing the request to build a final response. sub { my $env = shift; $env["psgix.informational"}->(103, [ 'link' => '; rel=preload' ]); my $resp = ... application logic ... $resp; } NOTES Starlet is designed and implemented to be simple, secure and fast, especially for running as an HTTP application server running behind a reverse proxy. It only depends on a minimal number of well-designed (and well-focused) modules. SEE ALSO Parallel::Prefork Starman Server::Starter AUTHOR Kazuho Oku miyagawa kazeburo Tomohiro Takezawa LICENSE This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See Starlet-0.31/t/0000755RzZ);0000000000013023435376013407 5ustar kazuhokazuhoStarlet-0.31/t/00base-hello.psgi0000644RzZ);0000000016312716541665016455 0ustar kazuhokazuhomy $handler = sub { return [ 200, [ "Content-Type" => "text/plain", "Content-Length" => 5 ], [ "hello" ] ]; }; Starlet-0.31/t/00base.t0000644RzZ);0000000246512716541665014664 0ustar kazuhokazuhouse strict; use warnings; use File::Basename (); use List::Util qw(first); use LWP::UserAgent (); use Test::TCP (); use Test::More; BEGIN { use_ok('Server::Starter'); }; sub findprog { my $prog = shift; first { -x $_ } map { "$_/$prog" } ( File::Basename::dirname($^X), split /:/, $ENV{PATH}, ); } my $start_server = findprog('start_server'); my $plackup = findprog('plackup'); sub doit { my $pkg = shift; my $port = Test::TCP::empty_port(); my $server_pid = fork(); die "fork failed:$!" unless defined $server_pid; if ($server_pid == 0) { # child == server exec( $start_server, "--port=$port", '--', $plackup, '--server', $pkg, 't/00base-hello.psgi', ); die "failed to launch server using start_server:$!"; } sleep 1; my $ua = LWP::UserAgent->new; my $response = $ua->get("http://127.0.0.1:$port/"); ok($response->is_success, "request successfull"); is($response->content, 'hello', 'content is hello'); kill 'TERM', $server_pid; while (wait == -1) {} } if ($start_server) { doit('Starlet'); } else { warn "could not find `start_server' next to $^X nor from \$PATH, skipping tests"; } done_testing; Starlet-0.31/t/01plack-test.t0000644RzZ);0000000016712716541665016017 0ustar kazuhokazuhouse strict; use Test::More; use Plack::Test::Suite; Plack::Test::Suite->run_server_tests('Starlet'); done_testing(); Starlet-0.31/t/02graceful.t0000644RzZ);0000000130712716541665015536 0ustar kazuhokazuhouse strict; use warnings; use HTTP::Request::Common; use Plack::Test; use Test::More; $Plack::Test::Impl = 'Server'; $ENV{PLACK_SERVER} = 'Starlet'; warn $$; test_psgi app => sub { my $env = shift; warn $$; unless (my $pid = fork) { die "fork failed:$!" unless defined $pid; # child process sleep 1; kill 'TERM', getppid(); exit 0; } sleep 5; return [ 200, [ 'Content-Type' => 'text/plain' ], [ "hello world" ] ]; }, client => sub { my $cb = shift; warn $$; my $res = $cb->(GET "/"); is $res->content, "hello world"; }; done_testing; Starlet-0.31/t/03post.t0000644RzZ);0000000305412716541665014735 0ustar kazuhokazuhouse strict; use warnings; use LWP::UserAgent; use Plack::Runner; use Test::More; use Test::TCP; warn $$; test_tcp( server => sub { my $port = shift; my $runner = Plack::Runner->new; $runner->parse_options( qw(--server Starlet --max-workers 0 --port), $port, ); $runner->run( sub { my $env = shift; my $buf = ''; while (length($buf) != $env->{CONTENT_LENGTH}) { my $rlen = $env->{'psgi.input'}->read( $buf, $env->{CONTENT_LENGTH} - length($buf), length($buf), ); last unless $rlen > 0; } return [ 200, [ 'Content-Type' => 'text/plain' ], [ $buf ], ]; }, ); }, client => sub { my $port = shift; note 'send a broken request'; my $sock = IO::Socket::INET->new( PeerAddr => "127.0.0.1:$port", Proto => 'tcp', ) or die "failed to connect to server:$!"; $sock->print(<< "EOT"); POST / HTTP/1.0\r Content-Length: 6\r \r EOT undef $sock; note 'send next request'; my $ua = LWP::UserAgent->new; $ua->timeout(10); my $res = $ua->post("http://127.0.0.1:$port/", { a => 1 }); ok $res->is_success; is $res->code, 200; is $res->content, 'a=1'; }, ); done_testing; Starlet-0.31/t/04-bumpy-life.t0000644RzZ);0000000067312716541665016103 0ustar kazuhokazuhouse strict; use warnings; use Plack::Loader; use Test::More; use Test::TCP qw(empty_port); my $starlet = Plack::Loader->load( 'Starlet', min_reqs_per_child => 5, max_reqs_per_child => 10, ); my ($min, $max) = (7, 7); for (my $i = 0; $i < 10000; $i++) { my $n = $starlet->_calc_reqs_per_child(); $min = $n if $n < $min; $max = $n if $n > $max; } is $min, 5, "min"; is $max, 10, "max"; done_testing; Starlet-0.31/t/05server-header.t0000644RzZ);0000000210212716541665016477 0ustar kazuhokazuhouse strict; use warnings; use Test::More; use Test::TCP; use LWP::UserAgent; use Plack::Loader; test_tcp( client => sub { my $port = shift; sleep 1; my $ua = LWP::UserAgent->new; my $res = $ua->get("http://localhost:$port/"); ok( $res->is_success ); like( scalar $res->header('Server'), qr/Starlet/ ); unlike( scalar $res->header('Server'), qr/Hello/ ); $res = $ua->get("http://localhost:$port/?server=1"); ok( $res->is_success ); unlike( scalar $res->header('Server'), qr/Starlet/ ); like( scalar $res->header('Server'), qr/Hello/ ); }, server => sub { my $port = shift; my $loader = Plack::Loader->load( 'Starlet', port => $port, max_workers => 5, ); $loader->run(sub{ my $env = shift; my @headers = ('Content-Type','text/html'); push @headers, 'Server', 'Hello' if $env->{QUERY_STRING}; [200, \@headers, ['HELLO']]; }); exit; }, ); done_testing; Starlet-0.31/t/06harakiri.t0000644RzZ);0000000176212716541665015551 0ustar kazuhokazuhouse strict; use warnings; use HTTP::Request::Common; use Plack::Test; use Test::More; $Plack::Test::Impl = 'Server'; $ENV{PLACK_SERVER} = 'Starlet'; test_psgi app => sub { my $env = shift; return [ 200, [ 'Content-Type' => 'text/plain' ], [$$] ]; }, client => sub { my %seen_pid; my $cb = shift; for (1..23) { my $res = $cb->(GET "/"); $seen_pid{$res->content}++; } cmp_ok(keys(%seen_pid), '<=', 10, 'In non-harakiri mode, pid is reused') }; test_psgi app => sub { my $env = shift; $env->{'psgix.harakiri.commit'} = $env->{'psgix.harakiri'}; return [ 200, [ 'Content-Type' => 'text/plain' ], [$$] ]; }, client => sub { my %seen_pid; my $cb = shift; for (1..23) { my $res = $cb->(GET "/"); $seen_pid{$res->content}++; } is keys(%seen_pid), 23, 'In Harakiri mode, each pid only used once'; }; done_testing; Starlet-0.31/t/07remote_port.t0000644RzZ);0000000175412716541665016320 0ustar kazuhokazuhouse strict; use warnings; use Test::More; use Test::TCP; use LWP::UserAgent; use IO::Socket::INET; use Plack::Loader; test_tcp( client => sub { my $port = shift; sleep 1; my $sock = IO::Socket::INET->new( PeerAddr => "localhost:$port", Proto => 'tcp', ); ok($sock); my $localport = $sock->sockport; my $req = "GET / HTTP/1.0\015\012\015\012"; $sock->syswrite($req,length($req)); $sock->sysread( my $buf, 1024); like( $buf, qr/HELLO $localport/); }, server => sub { my $port = shift; my $loader = Plack::Loader->load( 'Starlet', port => $port, max_workers => 5, ); $loader->run(sub{ my $env = shift; my @headers = (); my $remote_port = $env->{REMOTE_PORT}; [200, ['Content-Type'=>'text/html'], ['HELLO '.$remote_port]]; }); exit; }, ); done_testing; Starlet-0.31/t/08chunked_req.t0000644RzZ);0000000163412716541665016247 0ustar kazuhokazuhouse strict; use Test::TCP; use Plack::Test; use HTTP::Request; use Test::More; use Digest::MD5; $Plack::Test::Impl = "Server"; $ENV{PLACK_SERVER} = 'Starlet'; my $file = "t/assets/baybridge.jpg"; my $app = sub { my $env = shift; my $body; my $clen = $env->{CONTENT_LENGTH}; while ($clen > 0) { $env->{'psgi.input'}->read(my $buf, $clen) or last; $clen -= length $buf; $body .= $buf; } return [ 200, [ 'Content-Type', 'text/plain', 'X-Content-Length', $env->{CONTENT_LENGTH} ], [ $body ] ]; }; test_psgi $app, sub { my $cb = shift; open my $fh, "<:raw", $file; local $/ = \1024; my $req = HTTP::Request->new(POST => "http://localhost/"); $req->content(sub { scalar <$fh> }); my $res = $cb->($req); is $res->header('X-Content-Length'), 79838; is Digest::MD5::md5_hex($res->content), '983726ae0e4ce5081bef5fb2b7216950'; }; done_testing; Starlet-0.31/t/09chunked_zero_length.t0000644RzZ);0000000116012716541665017773 0ustar kazuhokazuhouse strict; use Test::TCP; use Plack::Test; use HTTP::Request; use Test::More; $Plack::Test::Impl = "Server"; $ENV{PLACK_SERVER} = 'Starlet'; my $app = sub { my $env = shift; return sub { my $response = shift; my $writer = $response->([ 200, [ 'Content-Type', 'text/plain' ]]); $writer->write("Content"); $writer->write(""); $writer->write("Again"); $writer->close; } }; test_psgi $app, sub { my $cb = shift; my $req = HTTP::Request->new(GET => "http://localhost/"); my $res = $cb->($req); is $res->content, "ContentAgain"; }; done_testing; Starlet-0.31/t/10unix_domain_socket.t0000644RzZ);0000000323612716541665017632 0ustar kazuhokazuhouse strict; use File::Temp qw(tempfile); use IO::Socket::UNIX; use Plack::Loader; use Socket; use Test::More; (undef, my $sockfile) = tempfile(UNLINK => 0); unlink $sockfile; sub doit { my $create_loader = shift; my $pid = fork; die "fork failed:$!" unless defined $pid; if ($pid == 0) { # server my $loader = $create_loader->(); $loader->run(sub { my $env = shift; my $remote = $env->{REMOTE_ADDR}; $remote = 'UNIX' if ! defined $remote; return [ 200, ['Content-Type'=>'text/html'], ["HELLO $remote"], ]; }); exit; } sleep 1; my $client = IO::Socket::UNIX->new( Peer => $sockfile, timeout => 3, ) or die "failed to listen to socket $sockfile:$!"; $client->syswrite("GET / HTTP/1.0\015\012\015\012"); $client->sysread(my $buf, 1024); like $buf, qr/Starlet/; like $buf, qr/HELLO UNIX/; kill 'TERM', $pid; waitpid($pid, 0); unlink($sockfile); } subtest 'direct' => sub { doit(sub { return Plack::Loader->load( 'Starlet', max_workers => 5, socket => $sockfile, ); }); }; subtest 'server-starter' => sub { doit(sub { my $sock = IO::Socket::UNIX->new( Listen => Socket::SOMAXCONN(), Local => $sockfile, ) or die "failed to listen to socket $sockfile:$!"; $ENV{SERVER_STARTER_PORT} = "$sockfile=@{[$sock->fileno]}"; return Plack::Loader->load( 'Starlet', max_workers => 5, ); }); }; done_testing(); Starlet-0.31/t/11multi-sockets.t0000644RzZ);0000000411612716541665016552 0ustar kazuhokazuhouse strict; use warnings; use Test::More; use Plack::Loader; use File::Temp; use IO::Socket::INET; use Net::EmptyPort qw(empty_port); use Socket; my $PORT_NUM = 3; my $UDS_NUM = 4; my $WORKER_NUM = 2; my @tcp_socks = map { IO::Socket::INET->new( Listen => Socket::SOMAXCONN(), Proto => 'tcp', LocalPort => empty_port(), LocalAddr => '127.0.0.1', ReuseAddr => 1, ) or die "failed to listen:$!"; } (1..$PORT_NUM); my @uds_socks = map { my ($fh, $filename) = File::Temp::tempfile(UNLINK=>0); close($fh); unlink($filename); IO::Socket::UNIX->new( Listen => Socket::SOMAXCONN(), Local => $filename, ) or die "failed to listen to socket $filename:$!"; } (1..$UDS_NUM); $ENV{SERVER_STARTER_PORT} = join ';', ( map($_->sockport.'='.$_->fileno, @tcp_socks), map($_->hostpath.'='.$_->fileno, @uds_socks), ); my $pid = fork; if ( $pid == 0 ) { # server my $loader = Plack::Loader->load( 'Starlet', max_workers => $WORKER_NUM, ); $loader->run(sub{ my $env = shift; [200, ['Content-Type'=>'text/html'], ["HELLO $env->{SERVER_PORT}"]]; }); exit; } sleep 1; for my $listen_sock (@tcp_socks, @uds_socks) { my ($client, $port); if ($listen_sock->sockdomain == AF_INET) { $port = $listen_sock->sockport; $client = IO::Socket::INET->new( Proto => 'tcp', PeerAddr => '127.0.0.1', PeerPort => $listen_sock->sockport, timeout => 3, ) or die "failed to connect to socket $port:$!"; } elsif ($listen_sock->sockdomain == AF_UNIX) { $port = $listen_sock->hostpath; $client = IO::Socket::UNIX->new( Peer => $port, timeout => 3, ) or die "failed to connect to socket $port:$!"; } else { die "unknown socket"; } $client->syswrite("GET / HTTP/1.0\015\012\015\012"); $client->sysread(my $buf, 1024); like $buf, qr/Starlet/; like $buf, qr/HELLO $port/; } done_testing(); kill 'TERM', $pid; waitpid($pid,0); Starlet-0.31/t/12bad_request_line.t0000644RzZ);0000000150612716541665017255 0ustar kazuhokazuhouse strict; use warnings; use Test::More; use Test::TCP qw(test_tcp); use IO::Socket::INET; use Plack::Loader; test_tcp( client => sub { my $port = shift; my $sock = IO::Socket::INET->new( PeerAddr => "localhost:$port", Proto => 'tcp', ); my $req = "GET /bad request header/ HTTP/1.0\015\012\015\012"; $sock->syswrite($req, length $req); $sock->sysread(my $buf, 1024); like $buf, qr/\b400\b/; note $buf; }, server => sub { my $port = shift; local $SIG{__WARN__} = sub { ok 0, "No warnings"; diag @_; }; my $loader = Plack::Loader->load('Starlet', port => $port); $loader->run(sub { [200, ['Content-Type' => 'text/plain'], ['OK']] }); exit; }, ); done_testing; Starlet-0.31/t/13spawn_interval.t0000644RzZ);0000000372513023430575016777 0ustar kazuhokazuhouse strict; use warnings; use File::Basename (); use List::Util qw(first); use Test::TCP (); use File::Temp qw(tmpnam); use Test::More; BEGIN { use_ok('Server::Starter'); }; sub findprog { my $prog = shift; first { -x $_ } map { "$_/$prog" } ( File::Basename::dirname($^X), split /:/, $ENV{PATH}, ); } sub read_status_file { my $path = shift; open my $fh, $path or die "failed to open status file $path"; my $contents = do { local $/; <$fh> }; close $fh; my @pids = map { (split /:/, $_)[1] } split /\n/, $contents; return @pids; } my $start_server = findprog('start_server'); my $plackup = findprog('plackup'); sub doit { my $pkg = shift; my $port = Test::TCP::empty_port(); my $status_file_path = tmpnam(); my $server_pid = fork(); die "fork failed:$!" unless defined $server_pid; if ($server_pid == 0) { # child == server exec( $start_server, "--port=$port", "--status-file=$status_file_path", "--signal-on-hup=USR1", '--', $plackup, '--server', $pkg, '--max-workers=5', # just for finish test fast '--spawn-interval=1', 't/00base-hello.psgi', ); die "failed to launch server using start_server:$!"; } # wait until all workers spawn sleep 5; my @pids = read_status_file($status_file_path); my $sent_num_before_hup = kill 0, $pids[0]; kill 'HUP', $server_pid; sleep 4; my $sent_num_after_hup = kill 0, $pids[0]; is $sent_num_before_hup, 1, "process still alive before HUP signal"; is $sent_num_after_hup, 1, "old generation process still alive for a while after HUP signal"; sleep 1; kill 'TERM', $server_pid; while (wait == -1) {} } if ($start_server) { doit('Starlet'); } else { warn "could not find `start_server' next to $^X nor from \$PATH, skipping tests"; } done_testing; Starlet-0.31/t/14child_finish_hook.t0000644RzZ);0000000106013023430575017375 0ustar kazuhokazuhouse strict; use warnings; use Test::More; use Plack::Runner; $SIG{CONT} = sub { pass('child_exit has been executed.') }; plan tests => 1; our $main_pid = $$; my $pid = fork; if ( $pid == 0 ) { my $runner = Plack::Runner->new; $runner->parse_options( qw(--server Starlet --max-workers 1 --child-exit), "sub { kill 'CONT', $main_pid }", ); $runner->run(sub{ my $env = shift; [200, ['Content-Type'=>'text/html'], ["HELLO"]]; }); exit 0; } sleep 1; kill 'TERM', $pid; waitpid($pid, 0); done_testing(); Starlet-0.31/t/assets/0000755RzZ);0000000000013023435376014711 5ustar kazuhokazuhoStarlet-0.31/t/assets/baybridge.jpg0000644RzZ);0000023373612716541665017370 0ustar kazuhokazuhoJFIFHH^Photoshop 3.08BIMBZ San Francisco_ CaliforniadUSAe United States XMP://ns.adobe.com/xap/1.0/ San Francisco United States California C   C  U!1A"Qaq#2 B3Rb$r 4Cs%56St7u&dvwG!1AQaq"2B#R3br$csCS ? #Z]c8?M0%-Q3}|L8=$Xύ$@thvJR?KiH%/׍. UNHJxM".!]?zPX`q%sLZ#L脀 ΉLJa<0])GtPZ|1Ο[$ ptwNZQ80R”HDZRJL:nґRe:!4=?JLJR4p?="ԖFʓie>IiL&BKN@'m1!:'dm?zHg|ih 1d qƈI󏶑hp:"8ɂ'8KD23>DrNm$gi)2=07I"JBu@3h@H9Ξ ,;83t,@񃧄]{s"/'{iN+~sܐX<`~ӲeB< :Kh#8$$@BRX#diI| liĨIc:F #4sI&Td=>Bįps0^?>}(ǿ rC)&A :PdZSo灁]&d18 ]8S'(v>B|N1Pۑӗp8C qBklq8:$]Mj=N 5Ɍ{D(qlV1A@M`Gh<`{ dG~4ĢM|s!:J^Oh맘I}4P8Ɣ7sЃ e d9$!^? ~ I4Y сiE{iw!c>sJHߍ6hL E2=Й`Si"c9})`WlcV)g?$m"wNl=)I:d3IXxN "S4 i'hh}3R!p;[i%,"ŝ&ODBby#lѰ(Y 5̸h\ e#-?ĈF$Qk<L '[~4Ў5E N&yi% jL|H-(OJnG'Ɯ(@NxLtLoΘ< st$B} O!/iQc>]!?DBPÜ=$LG?}0;MDҔ0hqΘ"c`3:yrF3V1Lhύ$S9#wʱ(14҆e #N9" U Ec'ӛ,=3> jEA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