Author: markt
Date: Sat Mar 22 11:13:58 2014
New Revision: 1580195

URL: http://svn.apache.org/r1580195
Log:
Make exception handling more robust - review by remm.

Modified:
    tomcat/tc7.0.x/trunk/   (props changed)
    tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/AsyncContextImpl.java

Propchange: tomcat/tc7.0.x/trunk/
------------------------------------------------------------------------------
  Merged /tomcat/trunk:r1580194

Modified: 
tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/AsyncContextImpl.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/AsyncContextImpl.java?rev=1580195&r1=1580194&r2=1580195&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/AsyncContextImpl.java 
(original)
+++ tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/AsyncContextImpl.java 
Sat Mar 22 11:13:58 2014
@@ -136,11 +136,12 @@ public class AsyncContextImpl implements
         // event.
         try {
             request.getResponse().finishResponse();
-        } catch (IOException ioe) {
+        } catch (Throwable t) {
+            ExceptionUtils.handleThrowable(t);
             // Catch this here and allow async context complete to continue
             // normally so a dispatch takes place which ensures that  the
             // request and response objects are correctly recycled.
-            log.debug(sm.getString("asyncContextImpl.finishResponseError"), 
ioe);
+            log.debug(sm.getString("asyncContextImpl.finishResponseError"), t);
         }
     }
 



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

Reply via email to