RE: Large HTML file not getting compressed despite compressionenabled

2008-04-19 Thread Alex Epshteyn
I thought about trying without APR, but wasn't sure how to disable it (on Linux). Anyways, I've worked around this problem by implementing my own filter that serves up a pre-gzipped version of the files that aren't getting compressed. Alex Caldarale, Charles R wrote: &

Re: Large HTML file not getting compressed despite compression enabled

2008-04-18 Thread Alex Epshteyn
Okay, here's the bug: org.apache.coyote.http11.Http11AprProcessor:1504: response.getContentLengthLong() returns 4, instead of the true file size, making it appear lower than the minimum compression threshold. Alex Epshteyn wrote: > > Turned out it was the file size. If I

Re: Large HTML file not getting compressed despite compression enabled

2008-04-17 Thread Alex Epshteyn
bound? Thanks, Alex Alex Epshteyn wrote: > > I finally had some time to try to track down this problem further. I set > the log levels to ALL, but still nothing useful showing up. However, I > found a curious thing in my access log. Consider this snippet: > > 76.19.64.19 -

Re: Large HTML file not getting compressed despite compression enabled

2008-04-17 Thread Alex Epshteyn
3) filename too long. That's pretty much it. I don't think it's the contents inside the file - I've gone through several incarnations of these (they are generated by my compiler), and not a single one has successfully gotten gzipped. Thanks again for your time, Alex Alex Epsh

Re: Large HTML file not getting compressed despite compression enabled

2008-04-01 Thread Alex Epshteyn
Does anyone know what might be happening here? This is a pretty strange problem... Thanks for your time, Alex Alex Epshteyn wrote: > > I have Tomcat's compression enabled: > > maxThreads="200" minSpareThreads="25" maxSpareThreads="

Can a Filter know that a connection timeout has occurred?

2008-03-31 Thread Alex Epshteyn
Say I have the following filter which is responsible for timing all requests in my application: public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws IOException, ServletException { startTiming(request, response); filterChain.doFilter(reque

Re: Tomcat deploys 2 instances of an app mapped to "/"

2008-03-30 Thread Alex Epshteyn
case-insensitive file systems like *FAT and NTFS). On Sun, Mar 30, 2008 at 4:01 PM, Alex Epshteyn <[EMAIL PROTECTED]> wrote: > Hi, > > Suppose I have the following in my server.xml: > >autoDeploy="true" xmlValidation="false" xmlNamespaceAware="fa

Large HTML file not getting compressed despite compression enabled

2008-03-30 Thread Alex Epshteyn
I have Tomcat's compression enabled: It works as expected for all my resources (stylesheets, scripts, etc) except for one static file, which has the extension .cache.html (in case you're wondering, it contains scripts generated by GWT). This file is pretty large - about 150K, but Tomcat doesn't

Tomcat deploys 2 instances of an app mapped to "/"

2008-03-30 Thread Alex Epshteyn
Hi, Suppose I have the following in my server.xml: This causes Tomcat to deploy two instances of the "foo" webapp - one as path "/foo/" and one as "/". I only want one instance deployed at "/". Any ideas? This is the only strategy I've found for replacing the ROOT app with my ow