Re: [AOLSERVER] Upload size limits

2008-07-10 Thread Juan José del Río
Yes, Jay. New method is:

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

-  
Juan José del Río|  
(+34) 616 512 340|  [EMAIL PROTECTED]


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


On Wed, 2008-07-09 at 21:10 -0400, Jay Rohr wrote:
 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 [EMAIL 
 PROTECTED] with the
 body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
 field of your email blank.


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

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] 
with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Upload size limits

2008-07-10 Thread Tom Jackson
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



On Thu, 2008-07-10 at 09:50 +0200, Juan José del Río wrote:
 Yes, Jay. New method is:
 
 ns_limits set default -maxupload [expr 1024 * 1024 * 1024]
 
 -  
 Juan José del Río|  
 (+34) 616 512 340|  [EMAIL PROTECTED]
 
 
 Simple Option S.L.
   Tel: (+34) 951 930 122
   Fax: (+34) 951 930 122
   http://www.simpleoption.com
 
 
 On Wed, 2008-07-09 at 21:10 -0400, Jay Rohr wrote:
  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 [EMAIL 
  PROTECTED] with the
  body of SIGNOFF AOLSERVER in the email message. You can leave the 
  Subject: field of your email blank.
 
 
 --
 AOLserver - http://www.aolserver.com/
 
 To Remove yourself from this list, simply send an email to [EMAIL 
 PROTECTED] with the
 body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
 field of your email blank.
 


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

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] 
with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Upload size limits

2008-07-10 Thread Tom Jackson
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:
 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 [EMAIL 
 PROTECTED] with the
 body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
 field of your email blank.


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

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] 
with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.