in reply to Re: Is libapreq2 dead?
in thread Is libapreq2 dead?
Garrison Hoffman wrote:The test that the above post refers to (request.pm) contains the following code:
> 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.
Adjusting that 1_000_000 to anything larger than the *hard coded* default in include/apreq.h.sub handler { my $r = shift; my $temp_dir = File::Spec->catfile(Apache2::ServerUtil::server_root, 'logs'); my $req = Apache2::Request->new($r, POST_MAX => 1_000_000, TEMP_DIR => $temp_dir);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Is libapreq2 dead?
by perrin (Chancellor) on Oct 29, 2008 at 20:59 UTC |