Skip to content
Newer
Older
100644 38 lines (26 sloc) 1.16 KB
344da26 @miyagawa templates
authored Oct 12, 2009
1 NAME
2e4b3b9 @miyagawa rename Plack::Server::Coro to Corona
authored Mar 11, 2010
2 Corona - Coro based PSGI web server
344da26 @miyagawa templates
authored Oct 13, 2009
3
4 SYNOPSIS
e2eb0c9 @miyagawa doc fix
authored Mar 11, 2010
5 corona --listen :9090 app.psgi
344da26 @miyagawa templates
authored Oct 13, 2009
6
7 DESCRIPTION
2e4b3b9 @miyagawa rename Plack::Server::Coro to Corona
authored Mar 11, 2010
8 Corona is a Coro based Plack web server. It uses Net::Server::Coro under
662ae3a @miyagawa Checking in changes prior to tagging of version 0.01. Changelog diff is:
authored Oct 13, 2009
9 the hood, which means we have coroutines (threads) for each socket,
10 active connections and a main loop.
11
12 Because it's Coro based your web application can actually block with I/O
13 wait as long as it yields when being blocked, to the other coroutine
14 either explicitly with "cede" or automatically (via Coro::* magic).
15
16 # your web application
17 use Coro::LWP;
2e4b3b9 @miyagawa rename Plack::Server::Coro to Corona
authored Mar 11, 2010
18 my $content = LWP::Simple::get($url); # this yields to other threads when IO blocks
662ae3a @miyagawa Checking in changes prior to tagging of version 0.01. Changelog diff is:
authored Oct 13, 2009
19
2e4b3b9 @miyagawa rename Plack::Server::Coro to Corona
authored Mar 11, 2010
20 Corona also uses Coro::AIO (and IO::AIO) if available, to send the
662ae3a @miyagawa Checking in changes prior to tagging of version 0.01. Changelog diff is:
authored Oct 13, 2009
21 static filehandle using sendfile(2).
22
23 The simple benchmark shows this server gives 2000 requests per second in
24 the simple Hello World app, and 300 requests to serve 2MB photo files
25 when used with AIO modules. Brilliantly fast.
26
27 This web server sets "psgi.multithread" env var on.
344da26 @miyagawa templates
authored Oct 13, 2009
28
29 AUTHOR
662ae3a @miyagawa Checking in changes prior to tagging of version 0.01. Changelog diff is:
authored Oct 13, 2009
30 Tatsuhiko Miyagawa
344da26 @miyagawa templates
authored Oct 13, 2009
31
32 LICENSE
662ae3a @miyagawa Checking in changes prior to tagging of version 0.01. Changelog diff is:
authored Oct 13, 2009
33 This module is licensed under the same terms as Perl itself.
344da26 @miyagawa templates
authored Oct 13, 2009
34
35 SEE ALSO
662ae3a @miyagawa Checking in changes prior to tagging of version 0.01. Changelog diff is:
authored Oct 13, 2009
36 Coro Net::Server::Coro Coro::AIO
37
Something went wrong with that request. Please try again.