tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r351763 - /tomcat/connectors/branches/tc5.0.x/http11/src/java/org/apache/coyote/http11/InternalInputBuffer.java
Date Fri, 02 Dec 2005 16:05:16 GMT
Author: yoavs
Date: Fri Dec  2 08:05:14 2005
New Revision: 351763

URL: http://svn.apache.org/viewcvs?rev=351763&view=rev
Log:
Bugzilla 36742: http://issues.apache.org/bugzilla/show_bug.cgi?id=36742

Modified:
    tomcat/connectors/branches/tc5.0.x/http11/src/java/org/apache/coyote/http11/InternalInputBuffer.java

Modified: tomcat/connectors/branches/tc5.0.x/http11/src/java/org/apache/coyote/http11/InternalInputBuffer.java
URL: http://svn.apache.org/viewcvs/tomcat/connectors/branches/tc5.0.x/http11/src/java/org/apache/coyote/http11/InternalInputBuffer.java?rev=351763&r1=351762&r2=351763&view=diff
==============================================================================
--- tomcat/connectors/branches/tc5.0.x/http11/src/java/org/apache/coyote/http11/InternalInputBuffer.java
(original)
+++ tomcat/connectors/branches/tc5.0.x/http11/src/java/org/apache/coyote/http11/InternalInputBuffer.java
Fri Dec  2 08:05:14 2005
@@ -1,5 +1,5 @@
 /*
- *  Copyright 1999-2004 The Apache Software Foundation
+ *  Copyright 1999-2005 The Apache Software Foundation
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -36,7 +36,12 @@
  * @author <a href="mailto:remm@apache.org">Remy Maucherat</a>
  */
 public class InternalInputBuffer implements InputBuffer {
-
+    /**
+     * Logger.
+     */
+    private static org.apache.commons.logging.Log log 
+        = org.apache.commons.logging.LogFactory.getLog(InternalInputBuffer.class);
+    
 
     // -------------------------------------------------------------- Constants
 
@@ -730,8 +735,14 @@
         if (parsingHeader) {
 
             if (lastValid == buf.length) {
-                throw new IOException
-                    (sm.getString("iib.requestheadertoolarge.error"));
+                // Bugzilla 36742: http://issues.apache.org/bugzilla/show_bug.cgi?id=36742
+                String err = sm.getString("iib.requestheadertoolarge.error");
+
+                if(log.isDebugEnabled()) {
+                    log.debug(err);
+                }
+
+                throw new IOException(err);
             }
 
             nRead = inputStream.read(buf, pos, buf.length - lastValid);



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


Mime
View raw message