> ----- Original Message ---- > From: Jeff Rogers <[email protected]> > To: [email protected] > Sent: Mon, December 6, 2010 3:40:47 PM > Subject: Re: [AOLSERVER] Does not work ns_return + zlib > > Hossein Sharifi wrote: > > One problem is that AOLserver doesn't gzip content when ns_return is > > called; >it works for pretty much > > every scenario except that one. I don't know why this is the case; we just >hacked this by recompiling > > nsd to always gzip regardless of the config file, as long as the client >supports it (line 161 of connio.c). It > > would be nice if this worked correctly by default (or if we figured out the >proper way to enable its use in > > ns_return). > > I only skimmed over the code, but it looks like the problem is that the > content >is only gzipped if the NS_CONN_GZIP flag is set on the conn, and the only >place >that flag is set is in the adp processor. > > The obvious (I think) improvement is to expose >Ns_ConnGetGzipFlag/Ns_ConnSetGzipFlag as > > subcommands of ns_conn, which would let you write a filter to do the >ancient/broken browser checking > > or whatever else you needed and turn gzip on or off as needed. (However, > doing >this could impact adp > > processing, so a corresponding change might need to be made there, lest your >adp code has a different > > idea about what should or shouldn't be compressed)
We had a similar discussion about this a couple years ago. See http://www.mail-archive.com/[email protected]/msg11598.html (although the threading is messed up in the mail archive, so you will have to skip around). At the time, if I remember, there wasn't a real consensus, so I made changes in my sandbox to mimic the adp compression but for ns_return. If people are interested, I can try to dig up the code. -- 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.
