Unix and Linux Discussions Tagged with newbies |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
8 |
81,611 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
10,741 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
20,396 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
21,820 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
12,559 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
10,531 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
13,672 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
13,944 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
18,947 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
14,186 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
20,797 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
7,793 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
24,921 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
10,510 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
9,967 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
13,276 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
11,479 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
10,237 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
10,296 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
12,083 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
8,188 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
11,126 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
14,134 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
11,437 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
26,142 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
12,139 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
9,205 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
18,045 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
14,823 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
11,111 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
12,871 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
13,213 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
18,188 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
10,975 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
6 |
13,112 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
10,605 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
8,837 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
13,849 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
16,577 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
13,629 |
UNIX for Beginners Questions & Answers |
Twiggy(3pm) User Contributed Perl Documentation Twiggy(3pm)
NAME
Twiggy - AnyEvent HTTP server for PSGI (like Thin)
SYNOPSIS
twiggy --listen :8080
See "twiggy -h" for more details.
use Twiggy::Server;
my $server = Twiggy::Server->new(
host => $host,
port => $port,
);
$server->register_service($app);
AE::cv->recv;
DESCRIPTION
Twiggy is a lightweight and fast HTTP server with unique features such as:
PSGI
Can run any PSGI applications. Fully supports psgi.nonblocking and psgi.streaming interfaces.
AnyEvent
This server uses AnyEvent and runs in a non-blocking event loop, so it's best to run event-driven web applications that runs I/O bound
jobs or delayed responses such as long-poll, WebSocket or streaming content (server push).
This software used to be called Plack::Server::AnyEvent but was renamed to Twiggy. See "NAMING" for details.
Fast header parser
Uses XS/C based HTTP header parser for the best performance. (optional, install the HTTP::Parser::XS module to enable it; see also
Plack::HTTPParser for more information).
Lightweight and Fast
The memory required to run twiggy is 6MB and it can serve more than 4500 req/s with a single process on Perl 5.10 with MacBook Pro 13"
late 2009.
Superdaemon aware
Supports Server::Starter for hot deploy and graceful restarts.
To use it, instead of the usual:
plackup --server Twiggy --port 8111 app.psgi
install Server::Starter and use:
start_server --port 8111 plackup --server Twiggy app.psgi
ENVIRONMENT
The following environment variables are supported.
TWIGGY_DEBUG
Set to true to enable debug messages from Twiggy.
NAMING
Twiggy?
Because it is like Thin <http://code.macournoyer.com/thin/>, Ruby's Rack web server using EventMachine. You know, Twiggy is thin :)
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 AnyEvent::Server::PSGI for those who like to type more ::'s. It would
actually help you find this software by searching for PSGI Server AnyEvent on CPAN, which i believe is a good thing.
Yes, maybe I'm on drugs. We'll see.
LICENSE
This module is licensed under the same terms as Perl itself.
AUTHOR
Tatsuhiko Miyagawa
Tokuhiro Matsuno
Yuval Kogman
Hideki Yamamura
Daisuke Maki
SEE ALSO
Plack AnyEvent Tatsumaki
perl v5.14.2 2012-02-21 Twiggy(3pm)