Author: markt Date: Mon Jun 1 09:13:00 2015 New Revision: 1682841 URL: http://svn.apache.org/r1682841 Log: Add handling for the new (and as yet unused) exception.
Modified: tomcat/trunk/java/org/apache/coyote/AbstractProtocol.java tomcat/trunk/java/org/apache/coyote/LocalStrings.properties Modified: tomcat/trunk/java/org/apache/coyote/AbstractProtocol.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/AbstractProtocol.java?rev=1682841&r1=1682840&r2=1682841&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/coyote/AbstractProtocol.java (original) +++ tomcat/trunk/java/org/apache/coyote/AbstractProtocol.java Mon Jun 1 09:13:00 2015 @@ -804,6 +804,11 @@ public abstract class AbstractProtocol<S // IOExceptions are normal getLog().debug(sm.getString( "abstractConnectionHandler.ioexception.debug"), e); + } catch (ProtocolException e) { + // Protocol exceptions normally mean the client sent invalid or + // incomplete data. + getLog().debug(sm.getString( + "abstractConnectionHandler.protocolexception.debug"), e); } // Future developers: if you discover any other // rare-but-nonfatal exceptions, catch them here, and log as Modified: tomcat/trunk/java/org/apache/coyote/LocalStrings.properties URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/LocalStrings.properties?rev=1682841&r1=1682840&r2=1682841&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/coyote/LocalStrings.properties (original) +++ tomcat/trunk/java/org/apache/coyote/LocalStrings.properties Mon Jun 1 09:13:00 2015 @@ -14,6 +14,7 @@ # limitations under the License. abstractConnectionHandler.error=Error reading request, ignored abstractConnectionHandler.ioexception.debug=IOExceptions are normal, ignored +abstractConnectionHandler.protocolexception.debug=ProtocolExceptions are normal, ignored abstractConnectionHandler.socketexception.debug=SocketExceptions are normal, ignored abstractConnectionHandler.negotiatedProcessor.fail=Failed to create Processor for negotiated protocol [{0}] --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org