Garrison Hoffman wrote:
I've tried numerous variations, but can't get POST_MAX to work properly. Everything works fine without it.

my $POST_MAX = 1024*1024*10;
my $req = Apache2::Request->new($r, POST_MAX => $POST_MAX);

The error log tells me only "Conflicting information", which seems exceedingly unhelpful.

Can someone point me in the right direction?

http://libapreq2.p6m7g8.net/apreq_8h.html#a4
You might try the httpd.conf configuration directives if you want it for _ALL_ 
$req objects.

#define APREQ_DEFAULT_READ_LIMIT   (64 * 1024 * 1024)
is the default.

APREQ2_ReadLimit 10485760

See glue/perl/t/response/TestApReq/request.pm for an example of using the 
POST_MAX argument.


I believe your error message is comming from here
module/apache2/handle.c
static
apr_status_t apache2_brigade_limit_set(apreq_handle_t *handle,
                                       apr_size_t bytes)
{
    ap_filter_t *f = get_apreq_filter(handle);
    struct filter_ctx *ctx;

    if (f->ctx == NULL)
        apreq_filter_make_context(f);

    ctx = f->ctx;

    if (ctx->body_status == APR_EINIT || ctx->brigade_limit > bytes) {
        ctx->brigade_limit = bytes;
        return APR_SUCCESS;
    }

    return APREQ_ERROR_MISMATCH;
}

library/error.c
    case APREQ_ERROR_MISMATCH:
        return "Conflicting information";

HTH

--
------------------------------------------------------------------------
Philip M. Gollucci ([EMAIL PROTECTED]) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F  6A47 D55A 7172 A799 97F

"It takes a minute to have a crush on someone, an hour to like someone,
and a day to love someone, but it takes a lifetime to forget someone..."

Reply via email to