HTTP::...:Legacy(3pm)

πŸ“¦
version 0.304 Β· 5 versions
, in debian bookworm, debian trixie, ubuntu noble

πŸ’– HTTP::Proxy::Engine::Legacy πŸ’–

okay bestie, so this is the HTTP::Proxy::Engine::Legacy page β€” a lil' module from the User Contributed Perl Documentation corner of the world, and yes it's the "older" HTTP::Proxy engine. vintage. iconic. lowkey a legend. 🫢


✨ SYNOPSIS ✨

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

that's literally it. one line. she's serving simplicity. πŸ’…


🌸 DESCRIPTION 🌸

This engine reproduces the older child creation algorithm of HTTP::Proxy. like, the original recipe. the way it used to be done. no cap. 🧚

Angelos Karageorgiou "<angelos@unix.gr>" 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. πŸ”₯πŸ”₯πŸ”₯ not me being obsessed with this config.

It seems that forked children are really slow when calling select for handling "keep-alive"d requests! πŸ’€ like, the vibes are simply not immaculate there.


πŸ‘‘ METHODS πŸ‘‘

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

  • start() β€” Initialise the engine. get her ready, bestie. ✨
  • run() β€” Implements the forking logic: a new process is forked for each new incoming TCP connection. every connection gets its own lil baby process. so maternal of her. πŸ¦‹
  • stop() β€” Reap remaining child processes. cleanup era. 🧹

The following method is used by the engine internally:

  • reap_zombies() β€” Process the dead child processes. yes she is literally doing zombie management. spooky but make it efficient. πŸ’€βœ¨

🌈 SEE ALSO 🌈

  • HTTP::Proxy
  • HTTP::Proxy::Engine

go read those too, iykyk. πŸ“š


πŸ’œ AUTHOR πŸ’œ

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


Copyright 2005-2015, Philippe Bruhat.


⭐ LICENSE ⭐

This module is free software; you can redistribute it or modify it under the same terms as Perl itself. fr fr, go wild (respectfully). πŸ’–


and that's the whole page, bestie!! this one's from perl v5.36.0, dated 2022-12-04, filed under HTTP::...:Legacy(3pm) β€” mwah, slay, periodt. πŸ‘‘πŸ’…πŸ«Ά

πŸ“¦ where this page comes from