[AOLSERVER] Upload size limits

3 views
Skip to first unread message

Jay Rohr

unread,
Jul 9, 2008, 9:10:42 PM7/9/08
to AOLS...@listserv.aol.com
Did the method of specify the max upload size change in 4.5?

4.0.x was "ns_param maxinput [expr 1024 * 1024 * 1024]"


Jay


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <list...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.

jayrohr.vcf

Juan José del Río

unread,
Jul 10, 2008, 3:50:49 AM7/10/08
to AOLS...@listserv.aol.com
Yes, Jay. New method is:

ns_limits set default -maxupload [expr 1024 * 1024 * 1024]

-
Juan José del Río |
(+34) 616 512 340 | juan...@simpleoption.com


Simple Option S.L.
Tel: (+34) 951 930 122
Fax: (+34) 951 930 122
http://www.simpleoption.com

Tom Jackson

unread,
Jul 10, 2008, 12:47:48 PM7/10/08
to AOLS...@listserv.aol.com
Okay that is helpful, but....

Jay,

The below code only sets the upload limit for the default threadpool,
which handles all unhandled requests from all virtual servers.

(I think!)

I wonder if there is a hard connection between the threadpools which are
defined by url patterns, and the limits api.

With threadpools, you first have to create the threadpool, except of the
one named default.


Also, I made a tiny local modification to my config.c file so that I
know what AOLserver is looking for during startup. There are new and
obsolete config params in 4.5. Here is the modified API:


static char *
ConfigGet(char *section, char *key, int exact)
{
Ns_Set *set;
int i;
char *s;

s = NULL;
if (section != NULL && key != NULL) {
set = Ns_ConfigGetSection(section);
if (set != NULL) {
if (exact) {
i = Ns_SetFind(set, key);
} else {
i = Ns_SetIFind(set, key);
}
if (i >= 0) {
s = Ns_SetValue(set, i);
}
}
}
Ns_Log(Debug, "ConfigGet: section %s, key %s, value %s", section,
key, s);
return s;
}

The log line is new.

Unfortunately the new ns_limits and ns_pools API go around this, so
there is no way to easily find what the config is.

tom jackson

Tom Jackson

unread,
Jul 10, 2008, 12:19:16 PM7/10/08
to AOLS...@listserv.aol.com
I think there is a new API, mostly undocumented: ns_limits.

It is possible that these config params have been moved to that API.

tom jackson

On Wed, 2008-07-09 at 21:10 -0400, Jay Rohr wrote:

Reply all
Reply to author
Forward
0 new messages