HTTP::Proxy::Engine::Legacy - The "older" HTTP::Proxy engine
my $proxy = HTTP::Proxy->new( engine => 'Legacy' );
This engine reproduces the older child creation algorithm of HTTP::Proxy.
Angelos Karageorgiou <angelos@unix.gr> reports:
<angelos@unix.gr>
I got the Legacy engine to work really fast under Win32 with the following trick:
Win32
max_keep_alive_requests(1); max_clients(120); $HTTP::VERSION(1.0); # just in case
and it smokes.
It seems that forked children are really slow when calling select for handling keep-alived requests!
keep-alive
The module defines the following methods, used by HTTP::Proxy main loop:
Initialise the engine.
Implements the forking logic: a new process is forked for each new incoming TCP connection.
Reap remaining child processes.
The following method is used by the engine internally:
Process the dead child processes.
HTTP::Proxy, HTTP::Proxy::Engine.
Philippe "BooK" Bruhat, <book@cpan.org>.
<book@cpan.org>
Copyright 2005-2013, Philippe Bruhat.
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
To install HTTP::Proxy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::Proxy
CPAN shell
perl -MCPAN -e shell install HTTP::Proxy
For more information on module installation, please visit the detailed CPAN module installation guide.