HTTP::Proxy::Engine::Legacy(3pm)

HTTP::Proxy::Engine::Legacy3pm

The "older" http::proxy engine

Usage

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

Overview

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

Angelos Karageorgiou "<[email protected]>" reports:

I got the Legacy engine to work really fast under "Win32" with the following trick:

    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-alive"d requests!

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.

Releases

10 releases since Debian 4.0 (Etch); the text changed 7 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9
  7. 10–11
  8. 12–13

Author

Philippe "BooK" Bruhat, "<[email protected]>".

License

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

From libhttp-proxy-perl 0.304-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.