Author: remy.maucherat(a)jboss.com
Date: 2008-03-05 07:44:07 -0500 (Wed, 05 Mar 2008)
New Revision: 468
Modified:
trunk/java/org/apache/catalina/connector/InputBuffer.java
Log:
- Do exception wrapping for reads too (to cleanup logging).
Modified: trunk/java/org/apache/catalina/connector/InputBuffer.java
===================================================================
--- trunk/java/org/apache/catalina/connector/InputBuffer.java 2008-03-04 23:42:05 UTC (rev
467)
+++ trunk/java/org/apache/catalina/connector/InputBuffer.java 2008-03-05 12:44:07 UTC (rev
468)
@@ -320,10 +320,16 @@
if(state == INITIAL_STATE)
state = BYTE_STATE;
- int result = coyoteRequest.doRead(bb);
+ try {
+ return coyoteRequest.doRead(bb);
+ } catch (IOException e) {
+ // An IOException on a read is almost always due to
+ // the remote client aborting the request or a timeout occurring.
+ // Wrap this so that it can be handled better by the error
+ // dispatcher.
+ throw new ClientAbortException(e);
+ }
- return result;
-
}