hi all,

i have a very special question and am not sure whether this is the right place to put it, but at least i should try.

i'm running a web application on a debian "sid" box with apache 2.0 and mod_perl2. in order to provide the app with a protection against flooding, the server has to shut down the connection if a client requeststs more than one page per second. the respective code is:
my $r = shift; [...] my $time = time; if ($session->{LAST_REQUEST} >= $time - 1) { $r->connection->keepalive(Apache2::Const::CONN_CLOSE); ModPerl::Util::exit(0); } else { $session->{LAST_REQUEST} = $time; } [...]
quite unspectacular so far. the result is as predictable: the browser displays a blank page instead of the requested document.

a few days ago i set up a new box with the latest debian packages containing apache 2.2 and mod_perl2. and now a funny thing happens: when the server closes the connection, my firefox 2.0 browser doesn't display the blank page, but offers to download the perl sources instead. funnier: these downloads do not appear in the server's log files. even more funny: this happens with firefox only. opera 9 behaves as expected. i consider this a serious security risk. but on whose side? apache, mod_perl or firefox? and are there any workarounds?

In reply to Apache2::Const::CONN_CLOSE & Apache 2.2 by TOD

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.