r72178 - in /trunk/starman: ./ bin/ debian/ inc/Module/ inc/Module/Install/ inc/Test/ lib/ lib/Starman/ t/

ghedo-guest at users.alioth.debian.org ghedo-guest at users.alioth.debian.org
Sun Apr 3 16:46:41 UTC 2011


Author: ghedo-guest
Date: Sun Apr  3 16:46:14 2011
New Revision: 72178

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=72178
Log:
* New upstream release
* Bump debhelper compat level to 8
* Add libtest-requires-perl and libtest-tcp-perl to B-D-I
* Versioned B-D-I on libplack-perl

Added:
    trunk/starman/t/findbin.psgi
      - copied unchanged from r72176, branches/upstream/starman/current/t/findbin.psgi
    trunk/starman/t/findbin.t
      - copied unchanged from r72176, branches/upstream/starman/current/t/findbin.t
    trunk/starman/t/rand.psgi
      - copied unchanged from r72176, branches/upstream/starman/current/t/rand.psgi
    trunk/starman/t/rand.t
      - copied unchanged from r72176, branches/upstream/starman/current/t/rand.t
Removed:
    trunk/starman/inc/Module/AutoInstall.pm
    trunk/starman/inc/Module/Install/AutoInstall.pm
    trunk/starman/inc/Module/Install/Include.pm
    trunk/starman/inc/Test/
Modified:
    trunk/starman/Changes
    trunk/starman/MANIFEST
    trunk/starman/META.yml
    trunk/starman/Makefile.PL
    trunk/starman/bin/starman
    trunk/starman/debian/changelog
    trunk/starman/debian/compat
    trunk/starman/debian/control
    trunk/starman/debian/copyright
    trunk/starman/lib/Starman.pm
    trunk/starman/lib/Starman/Server.pm

Modified: trunk/starman/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/starman/Changes?rev=72178&op=diff
==============================================================================
--- trunk/starman/Changes (original)
+++ trunk/starman/Changes Sun Apr  3 16:46:14 2011
@@ -1,4 +1,12 @@
 Revision history for Perl extension Starman
+
+0.2010  Mon Mar 28 16:23:23 PDT 2011
+        - Fixed packaging. No changes.
+
+0.2009  Fri Mar 25 19:15:23 PDT 2011
+        - Requires Plack 0.9971 to support localizing $0 to fix the FindBin issues #7, #15, #18, #19
+        - Calls srand() automatically in the child init hook to avoid a fixed random seed #20
+        - Implemented --keepalive-timeout which defaults to 1 (acme)
 
 0.2008  Mon Feb 14 17:19:20 PST 2011
         - Documented that -E is automatically set to 'deployment' RT:61517 (timbunce)

Modified: trunk/starman/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/starman/MANIFEST?rev=72178&op=diff
==============================================================================
--- trunk/starman/MANIFEST (original)
+++ trunk/starman/MANIFEST Sun Apr  3 16:46:14 2011
@@ -1,14 +1,11 @@
 .gitignore
 bin/starman
 Changes
-inc/Module/AutoInstall.pm
 inc/Module/Install.pm
 inc/Module/Install/AuthorTests.pm
-inc/Module/Install/AutoInstall.pm
 inc/Module/Install/Base.pm
 inc/Module/Install/Can.pm
 inc/Module/Install/Fetch.pm
-inc/Module/Install/Include.pm
 inc/Module/Install/Makefile.pm
 inc/Module/Install/Metadata.pm
 inc/Module/Install/ReadmeFromPod.pm
@@ -16,8 +13,6 @@
 inc/Module/Install/Scripts.pm
 inc/Module/Install/Win32.pm
 inc/Module/Install/WriteAll.pm
-inc/Test/Builder/Module.pm
-inc/Test/Requires.pm
 lib/HTTP/Server/PSGI/Net/Server/PreFork.pm
 lib/Plack/Handler/Starman.pm
 lib/Starman.pm
@@ -28,6 +23,10 @@
 README
 t/00_compile.t
 t/chunked_req.t
+t/findbin.psgi
+t/findbin.t
+t/rand.psgi
+t/rand.t
 t/suite.t
 xt/perlcritic.t
 xt/pod.t

Modified: trunk/starman/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/starman/META.yml?rev=72178&op=diff
==============================================================================
--- trunk/starman/META.yml (original)
+++ trunk/starman/META.yml Sun Apr  3 16:46:14 2011
@@ -5,6 +5,7 @@
 build_requires:
   ExtUtils::MakeMaker: 6.42
   Test::More: 0
+  Test::Requires: 0
 configure_requires:
   ExtUtils::MakeMaker: 6.42
 distribution_type: module
@@ -28,10 +29,11 @@
   HTTP::Parser::XS: 0
   HTTP::Status: 0
   Net::Server: 0.91
-  Plack: 0.9931
+  Plack: 0.9971
+  Test::TCP: 1.11
   parent: 0
   perl: 5.8.1
 resources:
   license: http://dev.perl.org/licenses/
   repository: git://github.com/miyagawa/Starman.git
-version: 0.2008
+version: 0.2010

Modified: trunk/starman/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/starman/Makefile.PL?rev=72178&op=diff
==============================================================================
--- trunk/starman/Makefile.PL (original)
+++ trunk/starman/Makefile.PL Sun Apr  3 16:46:14 2011
@@ -8,19 +8,18 @@
 all_from 'lib/Starman.pm';
 readme_from 'lib/Starman.pm';
 build_requires 'Test::More';
-requires 'Plack', 0.9931;
+requires 'Plack', 0.9971;
 requires 'Net::Server', 0.91;
 requires 'Data::Dump';
 requires 'HTTP::Parser::XS';
 requires 'HTTP::Status';
 requires 'HTTP::Date';
 requires 'parent';
+requires 'Test::TCP', 1.11;
 install_script 'bin/starman';
 recommends 'Server::Starter';
 recommends 'Net::Server::SS::PreFork';
 test_requires 'Test::Requires';
-auto_include_deps;
-auto_install;
 author_tests('xt');
 auto_set_repository;
 WriteAll;

Modified: trunk/starman/bin/starman
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/starman/bin/starman?rev=72178&op=diff
==============================================================================
--- trunk/starman/bin/starman (original)
+++ trunk/starman/bin/starman Sun Apr  3 16:46:14 2011
@@ -137,6 +137,17 @@
 connections more than a number of backend workers (i.e. Apache
 mpm_prefork + mod_proxy).
 
+=item --keepalive-timeout
+
+The number of seconds Starman will wait for a subsequent request
+before closing the connection if Keep-alive persistent connections
+are enabled. Setting this to a high value may cause performance
+problems in heavily loaded servers. The higher the timeout, the
+more backend workers will be kept occupied waiting on connections
+with idle clients.
+
+Defaults to 1.
+
 =item --user
 
 To listen on a low-numbered (E<lt>1024) port, it will be necessary to
@@ -160,7 +171,10 @@
 
 =back
 
-See C<plackup -h> for more options.
+Starman passes through other options given to L<Plack::Runner>, the
+common backend that L<plackup> uses, so the most options explained in
+C<plackup -h> such as C<--access-log> or C<--daemonize> works fine in
+starman too.
 
 C<starman> command automatically sets the environment (C<-E>) to the value of I<deployment>.
 

Modified: trunk/starman/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/starman/debian/changelog?rev=72178&op=diff
==============================================================================
--- trunk/starman/debian/changelog (original)
+++ trunk/starman/debian/changelog Sun Apr  3 16:46:14 2011
@@ -1,3 +1,12 @@
+starman (0.2010-1) UNRELEASED; urgency=low
+
+  * New upstream release
+  * Bump debhelper compat level to 8
+  * Add libtest-requires-perl and libtest-tcp-perl to B-D-I
+  * Versioned B-D-I on libplack-perl
+
+ -- Alessandro Ghedini <al3xbio at gmail.com>  Sun, 03 Apr 2011 18:35:34 +0200
+
 starman (0.2008-1) unstable; urgency=low
 
   * Initial Release. (Closes: #610904)

Modified: trunk/starman/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/starman/debian/compat?rev=72178&op=diff
==============================================================================
--- trunk/starman/debian/compat (original)
+++ trunk/starman/debian/compat Sun Apr  3 16:46:14 2011
@@ -1,1 +1,1 @@
-7
+8

Modified: trunk/starman/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/starman/debian/control?rev=72178&op=diff
==============================================================================
--- trunk/starman/debian/control (original)
+++ trunk/starman/debian/control Sun Apr  3 16:46:14 2011
@@ -1,12 +1,14 @@
 Source: starman
 Section: perl
 Priority: optional
-Build-Depends: debhelper (>= 7.2.13)
+Build-Depends: debhelper (>= 8)
 Build-Depends-Indep: perl,
  libdata-dump-perl,
  libhttp-parser-xs-perl,
  libnet-server-perl,
- libplack-perl,
+ libplack-perl (>= 0.9971),
+ libtest-requires-perl,
+ libtest-tcp-perl,
  libwww-perl,
  perl (>= 5.10.1) | libparent-perl
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>

Modified: trunk/starman/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/starman/debian/copyright?rev=72178&op=diff
==============================================================================
--- trunk/starman/debian/copyright (original)
+++ trunk/starman/debian/copyright Sun Apr  3 16:46:14 2011
@@ -31,14 +31,6 @@
 Copyright: 2009, Tatsuhiko Miyagawa <miyagawa at bulknews.net>
 License: Artistic or GPL-1+
 
-Files: inc/Test/Requires.pm
-Copyright: 2009-2010, Tokuhiro Matsuno <tokuhirom+cpan at gmail.com>
-License: Artistic or GPL-1+
-
-Files: inc/Test/Builder/*
-Copyright: 2001-2009, Michael G Schwern <schwern at pobox.com>
-License: Artistic or GPL-1+
-
 Files: debian/*
 Copyright: 2011, Alessandro Ghedini <al3xbio at gmail.com>
 License: Artistic or GPL-1+

Modified: trunk/starman/lib/Starman.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/starman/lib/Starman.pm?rev=72178&op=diff
==============================================================================
--- trunk/starman/lib/Starman.pm (original)
+++ trunk/starman/lib/Starman.pm Sun Apr  3 16:46:14 2011
@@ -2,7 +2,7 @@
 
 use strict;
 use 5.008_001;
-our $VERSION = '0.2008';
+our $VERSION = '0.2010';
 
 1;
 __END__

Modified: trunk/starman/lib/Starman/Server.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/starman/lib/Starman/Server.pm?rev=72178&op=diff
==============================================================================
--- trunk/starman/lib/Starman/Server.pm (original)
+++ trunk/starman/lib/Starman/Server.pm Sun Apr  3 16:46:14 2011
@@ -36,6 +36,9 @@
     }
     if (! exists $options->{keepalive}) {
         $options->{keepalive} = 1;
+    }
+    if (! exists $options->{keepalive_timeout}) {
+        $options->{keepalive_timeout} = 1;
     }
 
     my($host, $port, $proto);
@@ -104,6 +107,7 @@
 
 sub child_init_hook {
     my $self = shift;
+    srand();
     if ($self->{options}->{psgi_app_builder}) {
         DEBUG && warn "[$$] Initializing the PSGI app\n";
         $self->{app} = $self->{options}->{psgi_app_builder}->();
@@ -250,7 +254,7 @@
             DEBUG && warn "[$$] Waiting on previous connection for keep-alive request...\n";
 
             my $sel = IO::Select->new($conn);
-            last unless $sel->can_read(1);
+            last unless $sel->can_read($self->{options}->{keepalive_timeout});
         }
     }
 




More information about the Pkg-perl-cvs-commits mailing list