tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11 Http11Processor.java
Date Thu, 19 Dec 2002 09:34:29 GMT
remm        2002/12/19 01:34:28

  Modified:    http11/src/java/org/apache/coyote/http11
                        Http11Processor.java
  Log:
  - Add a way to set the minimum compression size.
  
  Revision  Changes    Path
  1.51      +10 -1     jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Processor.java
  
  Index: Http11Processor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Processor.java,v
  retrieving revision 1.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- Http11Processor.java	19 Dec 2002 09:19:06 -0000	1.50
  +++ Http11Processor.java	19 Dec 2002 09:34:28 -0000	1.51
  @@ -295,8 +295,17 @@
               this.compressionLevel = 1;
           } else if (compression.equals("force")) {
               this.compressionLevel = 2;
  -        } else {
  +        } else if (compression.equals("off")) {
               this.compressionLevel = 0;
  +        } else {
  +            try {
  +                // Try to parse compression as an int, which would give the
  +                // minimum compression size
  +                compressionMinSize = Integer.parseInt(compression);
  +                this.compressionLevel = 1;
  +            } catch (Exception e) {
  +                this.compressionLevel = 0;
  +            }
           }
       }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message