I'm currently having two minor issues with the 4.5.0 release:
Issue 1) No matter what values I set for maxthreads or maxconns, the
maximum number of simultaneous connections seems to be limited to 10. I
don't know if it's being limited by threads or connections. Here's
the relevant part of my config.tcl. I know some of these are
deprecated, but I left them in there just in case.
This is easily reproducable on a standard 4.5 install by running "ab -c
25 -n 1000 http://xxxx". But it also reproduces when I run it as my
real server (therefore, it has nothing to do with the fact that the IP
and URL are identical for each request).
ns_param maxconnections 60
ns_param maxdropped 0
ns_param maxconns 60
ns_param maxsocks 40
ns_param maxthreads 50
ns_param minthreads 40
ns_param threadtimeout 90
Note that I'm not using the new ns_pools feature for now.
Issue 2) Since a lot of the content-type code was cleaned up in 4.5.0,
it's no longer compatible with the nsreturnz module that I (and I assume
others) were using with 4.0.10. However, since 4.5.0 includes nszlib, I
thought it would be easy to write my own version of ns_returnz. It
doesn't seem to work, though.
Note that the 2k requirement is there to temporarily bypass the IE bug:
proc ns_returnz { status type content } {
set enc [ns_set get [ns_conn headers] Accept-Encoding]
set gzip_p [expr -1 != [string first gzip $enc]]
if { $gzip_p && [string length $content] > 2048 } {
set headers [ns_conn outputheaders]
set gz_content [ns_zlib gzip $content]
ns_set put $headers Content-Encoding "gzip"
ns_return $status $type $gz_content
} else {
ns_return $status $type $content
}
}
This code works fine if I return an actual gzipped file as the
"gz_content".
Any ideas on how to resolve either of these issues?
Thanks,
Hossein
--
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.