Hi, you can take a look at some of the included documentation for the new "nszlib" module:

http://aolserver.cvs.sourceforge.net/aolserver/aolserver/nszlib/ README?view=markup http://aolserver.cvs.sourceforge.net/aolserver/aolserver/nszlib/ example.tcl?view=markup

Hmm.. I thought I had read something about the zlib compression kicking in automatically at a larger than X size document being returned. Or is gzip support in AS different than zlib support (since gzip uses zlib internally, nay? http://www.gzip.org/)

I posted about this in June:
http://www.mail-archive.com/[email protected]/msg09964.html

-john

---



Re: [AOLSERVER] gzip compression
John Buckman
Mon, 26 Jun 2006 00:49:53 -0700

Having said that, the preferred future direction seems to be ns_adp_compress:

http://sourceforge.net/tracker/index.php? func=detail&group_id=3152&atid=353152&aid=1099613

Does this gzip option work with the AOLserver source in the current CVS tree?
I tried it, and added the recommended config section:

> ns_section "ns/server/${servername}/adp/gzip"
> ns_param enabled on
> ns_param level 4
> ns_param minsize 0

and couldn't get a compressed result back with:
> curl -H "Accept-Encoding: gzip" http://londonmini

Which I think should work.

Digging in the source, I see references to config options "gzipmin" and "gziplevel"
    if (!Ns_ConfigGetBool(path, "gzip", &i) || i) {
        servPtr->opts.flags |= SERV_GZIP;
    }
    if (!Ns_ConfigGetInt(path, "gzipmin", &i) || i <= 0) {
        i = 4 * 1024;
    }
    servPtr->opts.gzipmin = i;
    if (!Ns_ConfigGetInt(path, "gziplevel", &i) || i < 0 || i > 9) {
        i = 4;
    }
    servPtr->opts.gziplevel = i;

-john


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

Reply via email to