Re: [AOLSERVER] Large file uploads being limited

2007-08-10 Thread Tom Jackson
Pedro,

If you add this script to the bottom of your config file, you can get a 
substituted list of your config values:

set Debug 1

if {[info exists Debug]  $Debug} {

set sections [ns_configsections]

set output [list]

foreach section $sections {
set name [ns_set name $section]
set section_txt 
append section_txt ns_section $name\n

set size [ns_set size $section]
for {set i 0} {$i  $size} {incr i} {
append section_txt \t[list ns_param [ns_set key $section $i] 
[n
s_set value $section $i]]\n
}
lappend output $section_txt

}
set output [join [lsort $output] \n]\n
puts \n$output\n
}


For debugging configuration problems it will help you and us to figure out the 
current settings.

(you can also run this as a tcl page by changing 'puts ' to 'ns_return 200 
text/plain ')

tom jackson 

On Friday 10 August 2007 09:46, Pedro Liska wrote:
 Hi,

 I'm using AOLserver 4.5.0 with nsopenssl v3_0beta26 . When I post a file
 that is greater than 10MB to the server, I get a The connection was reset
 error in Mozilla and a Internet Explorer cannot display the webpage error
 in IE7.

 My guess is that AOLserver is looking at the Content-Length of the request
 and immediately dropping the connection. The request is not even logged in
 the access.log .

 I believe I have the maxinput and recvwait parameters set correctly on the
 nssock and nsopenssl sections. I'm copy pasting these sections to the
 bottom of this email. I've gone nuts trying to figure this out. Please let
 me know if you see where I'm messing up. Let me know if you'd like to see
 more (or all) of my config sections.

 Thank you!

 -- Pedro


 ns_section ns/server/$servername/module/nssock
 ns_param timeout  120
 ns_param hostname $hostname
 ns_param address  $address
 ns_param port $httpport
 ns_param   maxinput   [expr $max_file_upload_mb * 1024 * 1024]
 ;# Maximum File Size for uploads in bytes
 ns_param   recvwait   [expr $max_file_upload_mins *
 60];# Maximum request time in minutes

 ns_section ns/server/${servername}/module/nsopenssl

 ns_param ServerPort$httpsport
 # pliska commented the line below because this is not the correct
 section
 # for it. (
 http://www.mail-archive.com/aolserver@listserv.aol.com/msg07365.html )
 # ns_param   maxinput   [expr $max_file_upload_mb * 1024 *
 1024] ;# Maximum File Size for uploads in bytes

 ns_section ns/server/${servername}/module/nsopenssl/sslcontexts
 ns_param usersSSL context used for regular user access
 #ns_param admins   SSL context used for administrator access
 ns_param client   SSL context used for outgoing script socket
 connections

 ns_section ns/server/${servername}/module/nsopenssl/defaults
 ns_param server   users
 ns_param client   client

 ns_section ns/server/${servername}/module/nsopenssl/sslcontext/users
 ns_param Role  server
 #ns_param ModuleDir ${serverroot}/etc/certs
 ns_param CertFile  server.crt
 ns_param KeyFile   server.key
 #ns_param CADir ca-client/dir
 ns_param CAFileca-client.crt
 # for ProtocolsALL = SSLv2, SSLv3, TLSv1
 ns_param Protocols SSLv3, TLSv1
 ns_param CipherSuite
 ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
 ns_param PeerVerifyfalse
 ns_param PeerVerifyDepth   3
 ns_param Trace false

 # following from bartt's nsd4.tcl, might help stablize openssl
 connections?
 # http://www.mail-archive.com/aolserver@listserv.aol.com/msg07092.html
 ns_param SessionCache true
 ns_param SessionCacheID 1
 ns_param SessionCacheSize 512
 ns_param SessionCacheTimeout 300


 # ns_section
 ns/server/${servername}/module/nsopenssl/sslcontext/admins
 # ns_param Role  server
 # ns_param ModuleDir /path/to/dir
 # ns_param CertFile  server/server.crt
 # ns_param KeyFile   server/server.key
 # ns_param CADir ca-client/dir
 # ns_param CAFileca-client/ca-client.crt
 ## for ProtocolsALL = SSLv2, SSLv3, TLSv1
 # ns_param Protocols All
 # ns_param CipherSuite
 ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
 # ns_param PeerVerifyfalse
 # ns_param PeerVerifyDepth   3
 # ns_param Trace false

 ns_section ns/server/${servername}/module/nsopenssl/sslcontext/client
 ns_param Role  client
 #ns_param ModuleDir ${serverroot}/etc/certs
 ns_param CertFile  server.crt
 ns_param KeyFile   server.key
 #ns_param CADir   

Re: [AOLSERVER] Large file uploads being limited

2007-08-10 Thread Dossy Shiobara
On 2007.08.10, Pedro Liska [EMAIL PROTECTED] wrote:
 I'm using AOLserver 4.5.0 with nsopenssl v3_0beta26 . When I post a file
 that is greater than 10MB to the server, I get a The connection was reset
 error in Mozilla and a Internet Explorer cannot display the webpage error
 in IE7.

Connection-oriented limits are now specified with the ns_limit command
in 4.5.0 -- here's the snippet from the RELEASE file:

ns_limit:
The ns_limit command enables setting various resource
limits for specified method/url combinations. These limits
include such items as max concurrent connections, max file
upload size, and timeouts waiting for connection processing.
When limits are exceeded, connections are immediately
dispatched to a dedicated error connection processing
pool to generate a quick error response. By default all
requests share the same default limits.  Coupled with the
new ns_pools command, URL-based limits can provide for
sophisticated resource management.

-- Dossy

-- 
Dossy Shiobara  | [EMAIL PROTECTED] | http://dossy.org/
Panoptic Computer Network   | http://panoptic.com/
  He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on. (p. 70)


--
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] Large file uploads being limited

2007-08-10 Thread Pedro Liska
I forgot to mention that in my config file, my max_file_upload_mb and 
max_file_upload_mins vars are set to:

set max_file_upload_mb35
set max_file_upload_mins  10

Also, If I make them be 1MB and 1min, I'm able to upload 9MB file!

-- Pedro


--
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] Large file uploads being limited

2007-08-10 Thread Nathan Folkman
Here's an example showing how to find what is currently configured, as well
as how to update the maxupload value. You can reset the value directly in
your AOLserver configuration file if you'd like.

Welcome to server1 running at /usr/local/aolserver/bin/nsd (pid 570)
AOLserver/4.5.0 (aolserver4_5) for osx built on May 11 2007 at 17:19:41
CVS Tag: $Name:  $

server1:nscp 1 ns_limits list
default

server1:nscp 2 ns_limits get default
nrunning 0 nwaiting 0 ntimeout 0 ndropped 0 noverflow 0 maxwait 100
maxupload 1024 timeout 60 maxrun 100

server1:nscp 3 ns_limits set default -maxupload [expr 1024 * 2]
nrunning 0 nwaiting 0 ntimeout 0 ndropped 0 noverflow 0 maxwait 100
maxupload 2048 timeout 60 maxrun 100

Hope that helps!

- n


On 8/10/07, Dossy Shiobara [EMAIL PROTECTED] wrote:

 On 2007.08.10, Pedro Liska [EMAIL PROTECTED] wrote:
  I'm using AOLserver 4.5.0 with nsopenssl v3_0beta26 . When I post a file
  that is greater than 10MB to the server, I get a The connection was
 reset
  error in Mozilla and a Internet Explorer cannot display the webpage
 error
  in IE7.

 Connection-oriented limits are now specified with the ns_limit command
 in 4.5.0 -- here's the snippet from the RELEASE file:

 ns_limit:
 The ns_limit command enables setting various resource
 limits for specified method/url combinations. These limits
 include such items as max concurrent connections, max file
 upload size, and timeouts waiting for connection processing.
 When limits are exceeded, connections are immediately
 dispatched to a dedicated error connection processing
 pool to generate a quick error response. By default all
 requests share the same default limits.  Coupled with the
 new ns_pools command, URL-based limits can provide for
 sophisticated resource management.

 -- Dossy

 --
 Dossy Shiobara  | [EMAIL PROTECTED] | http://dossy.org/
 Panoptic Computer Network   | http://panoptic.com/
   He realized the fastest way to change is to laugh at your own
 folly -- then you can let go and quickly move on. (p. 70)


 --
 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.




-- 
Nathan Folkman
[EMAIL PROTECTED]


--
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.