Permalink
Browse files

convert to Milla

  • Loading branch information...
miyagawa committed Mar 28, 2013
1 parent 24f7160 commit ab7298ea0b5315274fe7edd03cb7bbb0b26aa180
Showing with 193 additions and 193 deletions.
  1. +2 −4 .gitignore
  2. +0 −2 .shipit
  3. +3 −0 Build.PL
  4. +2 −0 Changes
  5. +0 −37 MANIFEST
  6. +0 −15 MANIFEST.SKIP
  7. +42 −0 META.json
  8. +0 −25 Makefile.PL
  9. +0 −110 README
  10. +129 −0 README.md
  11. +14 −0 cpanfile
  12. +1 −0 dist.ini
  13. 0 {bin → script}/starman
View
@@ -1,6 +1,4 @@
-META.yml
-Makefile
-inc/
-pm_to_blib
*~
MYMETA.*
+!META.json
+/Starman-*
View
@@ -1,2 +0,0 @@
-steps = FindVersion, ChangeVersion, CheckChangeLog, DistTest, Commit, Tag, MakeDist, UploadCPAN
-git.push_to = origin
View
@@ -0,0 +1,3 @@
+use 5.006;
+use Module::Build::Tiny 0.013;
+Build_PL();
View
@@ -1,5 +1,7 @@
Revision history for Perl extension Starman
+{{$NEXT}}
+
0.3006 Wed Dec 19 09:55:05 JST 2012
- Clear out @ARGV, rather than restoring it, to avoid messing with Net::Server internals
View
@@ -1,37 +0,0 @@
-.gitignore
-bin/starman
-Changes
-inc/Module/Install.pm
-inc/Module/Install/AuthorTests.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/Repository.pm
-inc/Module/Install/Scripts.pm
-inc/Module/Install/Win32.pm
-inc/Module/Install/WriteAll.pm
-lib/HTTP/Server/PSGI/Net/Server/PreFork.pm
-lib/Plack/Handler/Starman.pm
-lib/Starman.pm
-lib/Starman/Server.pm
-Makefile.PL
-MANIFEST This list of files
-META.yml
-README
-t/00_compile.t
-t/chunked_req.t
-t/chunked_termination.t
-t/chunked_zero_length.t
-t/findbin.psgi
-t/findbin.t
-t/harakiri.t
-t/rand.psgi
-t/rand.t
-t/suite.t
-xt/perlcritic.t
-xt/pod.t
-xt/podspell.t
-xt/synopsis.t
View
@@ -1,15 +0,0 @@
-\bRCS\b
-\bCVS\b
-\.svn/
-\.git/
-^MANIFEST\.
-^Makefile$
-~$
-\.old$
-^blib/
-^pm_to_blib
-^MakeMaker-\d
-\.gz$
-\.cvsignore
-\.shipit
-MYMETA
View
@@ -0,0 +1,42 @@
+{
+ "abstract" : "High-performance preforking PSGI/Plack web server",
+ "author" : [
+ "Tatsuhiko Miyagawa <miyagawa@bulknews.net>"
+ ],
+ "dynamic_config" : 0,
+ "generated_by" : "Dist::Milla version v0.9.1, Dist::Zilla version 4.300031, CPAN::Meta::Converter version 2.130870",
+ "license" : [
+ "perl_5"
+ ],
+ "meta-spec" : {
+ "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
+ "version" : "2"
+ },
+ "name" : "Starman",
+ "prereqs" : {
+ "configure" : {
+ "requires" : {
+ "Module::Build::Tiny" : "0.013"
+ }
+ },
+ "develop" : {
+ "requires" : {
+ "Test::Pod" : "1.41"
+ }
+ }
+ },
+ "release_status" : "stable",
+ "resources" : {
+ "bugtracker" : {
+ "web" : "https://github.com/miyagawa/Starman/issues"
+ },
+ "homepage" : "https://github.com/miyagawa/Starman",
+ "repository" : {
+ "type" : "git",
+ "url" : "https://github.com/miyagawa/Starman.git",
+ "web" : "https://github.com/miyagawa/Starman"
+ }
+ },
+ "version" : "0.3006"
+}
+
View
@@ -1,25 +0,0 @@
-if ($^O eq 'MSWin32') {
- print STDERR "OS unsupported: $^O\n";
- exit;
-}
-
-use inc::Module::Install;
-name 'Starman';
-all_from 'lib/Starman.pm';
-readme_from 'lib/Starman.pm';
-build_requires 'Test::More';
-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', 0.12;
-recommends 'Net::Server::SS::PreFork';
-test_requires 'Test::Requires';
-author_tests('xt');
-auto_set_repository;
-WriteAll;
View
110 README
@@ -1,110 +0,0 @@
-NAME
- Starman - High-performance preforking PSGI/Plack web server
-
-SYNOPSIS
- # Run app.psgi with the default settings
- > starman
-
- # run with Server::Starter
- > start_server --port 127.0.0.1:80 -- starman --workers 32 myapp.psgi
-
- # UNIX domain sockets
- > starman --listen /tmp/starman.sock
-
-DESCRIPTION
- Starman is a PSGI perl web server that has unique features such as:
-
- High Performance
- Uses the fast XS/C HTTP header parser
-
- Preforking
- Spawns workers preforked like most high performance UNIX servers do.
- Starman also reaps dead children and automatically restarts the
- worker pool.
-
- Signals
- Supports "HUP" for graceful worker restarts, and "TTIN"/"TTOU" to
- dynamically increase or decrease the number of worker processes, as
- well as "QUIT" to gracefully shutdown the worker processes.
-
- Superdaemon aware
- Supports Server::Starter for hot deploy and graceful restarts.
-
- Multiple interfaces and UNIX Domain Socket support
- Able to listen on multiple intefaces including UNIX sockets.
-
- Small memory footprint
- Preloading the applications with "--preload-app" command line option
- enables copy-on-write friendly memory management. Also, the minimum
- memory usage Starman requires for the master process is 7MB and
- children (workers) is less than 3.0MB.
-
- PSGI compatible
- Can run any PSGI applications and frameworks
-
- HTTP/1.1 support
- Supports chunked requests and responses, keep-alive and pipeline
- requests.
-
- UNIX only
- This server does not support Win32.
-
-PERFORMANCE
- Here's a simple benchmark using "Hello.psgi".
-
- -- server: Starman (workers=10)
- Requests per second: 6849.16 [#/sec] (mean)
- -- server: Twiggy
- Requests per second: 3911.78 [#/sec] (mean)
- -- server: AnyEvent::HTTPD
- Requests per second: 2738.49 [#/sec] (mean)
- -- server: HTTP::Server::PSGI
- Requests per second: 2218.16 [#/sec] (mean)
- -- server: HTTP::Server::PSGI (workers=10)
- Requests per second: 2792.99 [#/sec] (mean)
- -- server: HTTP::Server::Simple
- Requests per second: 1435.50 [#/sec] (mean)
- -- server: Corona
- Requests per second: 2332.00 [#/sec] (mean)
- -- server: POE
- Requests per second: 503.59 [#/sec] (mean)
-
- This benchmark was processed with "ab -c 10 -t 1 -k" on MacBook Pro 13"
- late 2009 model on Mac OS X 10.6.2 with perl 5.10.0. YMMV.
-
-NAMING
- Starman?
- The name Starman is taken from the song (*Star na Otoko*) by the
- Japanese rock band Unicorn (yes, Unicorn!). It's also known as a song by
- David Bowie, a power-up from Super Mario Brothers and a character from
- Earthbound, all of which I love.
-
- Why the cute name instead of more descriptive namespace? Are you on drugs?
- I'm sick of naming Perl software like
- HTTP::Server::PSGI::How::Its::Written::With::What::Module and people
- call it HSPHIWWWM on IRC. It's hard to say on speeches and newbies would
- ask questions what they stand for every day. That's crazy.
-
- This module actually includes the longer alias and an empty subclass
- HTTP::Server::PSGI::Net::Server::PreFork for those who like to type more
- ::'s. It would actually help you find this software by searching for
- *PSGI Server Prefork* on CPAN, which i believe is a good thing.
-
- Yes, maybe I'm on drugs. We'll see.
-
-AUTHOR
- Tatsuhiko Miyagawa <miyagawa@bulknews.net>
-
- Andy Grundman wrote Catalyst::Engine::HTTP::Prefork, which this module
- is heavily based on.
-
- Kazuho Oku wrote Net::Server::SS::PreFork that makes it easy to add
- Server::Starter support to this software.
-
-LICENSE
- This library is free software; you can redistribute it and/or modify it
- under the same terms as Perl itself.
-
-SEE ALSO
- Plack Catalyst::Engine::HTTP::Prefork Net::Server::PreFork
-
View
129 README.md
@@ -0,0 +1,129 @@
+# NAME
+
+Starman - High-performance preforking PSGI/Plack web server
+
+# SYNOPSIS
+
+ # Run app.psgi with the default settings
+ > starman
+
+ # run with Server::Starter
+ > start_server --port 127.0.0.1:80 -- starman --workers 32 myapp.psgi
+
+ # UNIX domain sockets
+ > starman --listen /tmp/starman.sock
+
+Read more options and configurations by running \`perldoc starman\` (lower-case s).
+
+# DESCRIPTION
+
+Starman is a PSGI perl web server that has unique features such as:
+
+- High Performance
+
+ Uses the fast XS/C HTTP header parser
+
+- Preforking
+
+ Spawns workers preforked like most high performance UNIX servers
+ do. Starman also reaps dead children and automatically restarts the
+ worker pool.
+
+- Signals
+
+ Supports `HUP` for graceful worker restarts, and `TTIN`/`TTOU` to
+ dynamically increase or decrease the number of worker processes, as
+ well as `QUIT` to gracefully shutdown the worker processes.
+
+- Superdaemon aware
+
+ Supports [Server::Starter](http://search.cpan.org/perldoc?Server::Starter) for hot deploy and graceful restarts.
+
+- Multiple interfaces and UNIX Domain Socket support
+
+ Able to listen on multiple intefaces including UNIX sockets.
+
+- Small memory footprint
+
+ Preloading the applications with `--preload-app` command line option
+ enables copy-on-write friendly memory management. Also, the minimum
+ memory usage Starman requires for the master process is 7MB and
+ children (workers) is less than 3.0MB.
+
+- PSGI compatible
+
+ Can run any PSGI applications and frameworks
+
+- HTTP/1.1 support
+
+ Supports chunked requests and responses, keep-alive and pipeline requests.
+
+- UNIX only
+
+ This server does not support Win32.
+
+# PERFORMANCE
+
+Here's a simple benchmark using `Hello.psgi`.
+
+ -- server: Starman (workers=10)
+ Requests per second: 6849.16 [#/sec] (mean)
+ -- server: Twiggy
+ Requests per second: 3911.78 [#/sec] (mean)
+ -- server: AnyEvent::HTTPD
+ Requests per second: 2738.49 [#/sec] (mean)
+ -- server: HTTP::Server::PSGI
+ Requests per second: 2218.16 [#/sec] (mean)
+ -- server: HTTP::Server::PSGI (workers=10)
+ Requests per second: 2792.99 [#/sec] (mean)
+ -- server: HTTP::Server::Simple
+ Requests per second: 1435.50 [#/sec] (mean)
+ -- server: Corona
+ Requests per second: 2332.00 [#/sec] (mean)
+ -- server: POE
+ Requests per second: 503.59 [#/sec] (mean)
+
+This benchmark was processed with `ab -c 10 -t 1 -k` on MacBook Pro
+13" late 2009 model on Mac OS X 10.6.2 with perl 5.10.0. YMMV.
+
+# NAMING
+
+## Starman?
+
+The name Starman is taken from the song (_Star na Otoko_) by the
+Japanese rock band Unicorn (yes, Unicorn!). It's also known as a song
+by David Bowie, a power-up from Super Mario Brothers and a character
+from Earthbound, all of which I love.
+
+## Why the cute name instead of more descriptive namespace? Are you on drugs?
+
+I'm sick of naming Perl software like
+HTTP::Server::PSGI::How::Its::Written::With::What::Module and people
+call it HSPHIWWWM on IRC. It's hard to say on speeches and newbies
+would ask questions what they stand for every day. That's crazy.
+
+This module actually includes the longer alias and an empty subclass
+[HTTP::Server::PSGI::Net::Server::PreFork](http://search.cpan.org/perldoc?HTTP::Server::PSGI::Net::Server::PreFork) for those who like to type
+more ::'s. It would actually help you find this software by searching
+for _PSGI Server Prefork_ on CPAN, which i believe is a good thing.
+
+Yes, maybe I'm on drugs. We'll see.
+
+# AUTHOR
+
+Tatsuhiko Miyagawa <miyagawa@bulknews.net>
+
+Andy Grundman wrote [Catalyst::Engine::HTTP::Prefork](http://search.cpan.org/perldoc?Catalyst::Engine::HTTP::Prefork), which this module
+is heavily based on.
+
+Kazuho Oku wrote [Net::Server::SS::PreFork](http://search.cpan.org/perldoc?Net::Server::SS::PreFork) that makes it easy to add
+[Server::Starter](http://search.cpan.org/perldoc?Server::Starter) support to this software.
+
+# LICENSE
+
+This library is free software; you can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+# SEE ALSO
+
+[Plack](http://search.cpan.org/perldoc?Plack) [Catalyst::Engine::HTTP::Prefork](http://search.cpan.org/perldoc?Catalyst::Engine::HTTP::Prefork) [Net::Server::PreFork](http://search.cpan.org/perldoc?Net::Server::PreFork)
Oops, something went wrong.

0 comments on commit ab7298e

Please sign in to comment.