Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Re: Total speculation?

by hardburn (Abbot)
on Oct 02, 2003 at 18:47 UTC ( [id://296017]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Total speculation?
in thread Total speculation?

Perhaps an Apache virtual host would do it. I think a bare-bones throttling system could be set up with a filter. It could certainly be done with an Apache 2.0 PreConnectionFilter, though I doubt anybody is willing to upgrade PM to Apache 2 just yet.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

Note: All code is untested, unless otherwise stated

Replies are listed 'Best First'.
Re: Re: Re: Re: Total speculation?
by BrowserUk (Patriarch) on Oct 02, 2003 at 19:17 UTC

    FWIW, I did discover that there is a version of THTTPD available with a built-in perl5 interpreter. Whether that would be enough to run mod_perl I have no idea, but if it is, it might be worth considering. At 200k, it's a single-threaded, single-process, select model server with every conceivable throttling option built-in, and more than up to the task of acting as a test server.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
    If I understand your problem, I can solve it! Of course, the same can be said for you.

      mod_perl is geared heavily toward Apache, exposing its API to Perl. A server without that API cannot run mod_perl, by definition.

      Makeshifts last the longest.

        Ah! Okay, that kills that part of my speculation. Thanks for responding.


        Examine what is said, not who speaks.
        "Efficiency is intelligent laziness." -David Dunham
        "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
        If I understand your problem, I can solve it! Of course, the same can be said for you.

      I start googling, but perhaps you could post the link? This is interesting in it's own.

        thttpd The tiny/turbo/throttling web server. (200k exe in win32 form. see second section)

        The only mention I can find of the embedded perl I found is mostly in russian here but the link is to a UK site, but was down when I just tried it.


        Examine what is said, not who speaks.
        "Efficiency is intelligent laziness." -David Dunham
        "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
        If I understand your problem, I can solve it! Of course, the same can be said for you.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://296017]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-20 03:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found