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.