logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

HTTP::Proxy::Engine::Legacy - The "older" HTTP::Proxy engine

Author

       Philippe "BooK" Bruhat, "<book@cpan.org>".

Description

       This engine reproduces the older child creation algorithm of HTTP::Proxy.

       Angelos Karageorgiou "<angelos@unix.gr>" reports:

       IgottheLegacyenginetoworkreallyfastunder"Win32"withthefollowingtrick:max_keep_alive_requests(1);
           max_clients(120);
           $HTTP::VERSION(1.0); # just in case

       anditsmokes.Itseemsthatforkedchildrenarereallyslowwhencallingselectforhandling"keep-alive"drequests!

License

       This module is free software; you can redistribute it or modify it under the same terms as Perl itself.

perl v5.40.1                                       2025-02-18                   HTTP::Proxy::Engine::Legacy(3pm)

Methods

       The module defines the following methods, used by HTTP::Proxy main loop:

       start()
           Initialise the engine.

       run()
           Implements the forking logic: a new process is forked for each new incoming TCP connection.

       stop()
           Reap remaining child processes.

       The following method is used by the engine internally:

       reap_zombies()
           Process the dead child processes.

Name

       HTTP::Proxy::Engine::Legacy - The "older" HTTP::Proxy engine

See Also

       HTTP::Proxy, HTTP::Proxy::Engine.

Synopsis

           my $proxy = HTTP::Proxy->new( engine => 'Legacy' );

See Also