[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: Problem setting POST_MAX
From:       Ryan Gies <ryan () livesite ! net>
Date:       2008-09-17 18:00:24
Message-ID: 20080917110024.62aa6278 () devbox ! lsnllc
[Download RAW message or body]

On Wed, 17 Sep 2008 12:07:24 +0200
Rolf wrote:

> So I have to change this in the source to get a vlaue above 64M? :-(

According to the documentation you can specify the limit in the Apache
configuration, i.e.,

    APREQ2_ReadLimit 100M

I have not had success setting this directive.  Nor does this work:

    $r->add_config(['APREQ2_ReadLimit 100M']); 

in a PerlHeaderParserHandler.  If you do have success, please let me
know ;)

----

The Apache2::Request constructor attributes POST_MAX, MAX_BODY, and
READ_LIMIT are all passed to the same libapreq2 method,
apache2_read_limit_set, which, as of version 2.08, has this logic:

    if (ctx->read_limit > bytes && ctx->bytes_read < bytes) {
        ctx->read_limit = bytes;
        return APR_SUCCESS;
    }
    return APREQ_ERROR_MISMATCH;

Where bytes is the value you specified with POST_MAX and
APREQ_ERROR_MISMATCH is "Conflicting information".
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic