tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1519711 - /tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java
Date Tue, 03 Sep 2013 14:59:18 GMT
Author: markt
Date: Tue Sep  3 14:59:17 2013
New Revision: 1519711

URL: http://svn.apache.org/r1519711
Log:
Fixing the last Gump failure, created this one.
Rethrow the exception so that the access log entry is created.
Error handling should be consistent across the connectors now.

Modified:
    tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java

Modified: tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java?rev=1519711&r1=1519710&r2=1519711&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java (original)
+++ tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java Tue Sep  3 14:59:17
2013
@@ -366,7 +366,7 @@ public class CoyoteAdapter implements Ad
                     } catch (Throwable t) {
                         ExceptionUtils.handleThrowable(t);
                         res.getWriteListener().onError(t);
-                        return false;
+                        throw t;
                     } finally {
                         Thread.currentThread().setContextClassLoader(oldCL);
                     }
@@ -386,7 +386,7 @@ public class CoyoteAdapter implements Ad
                     } catch (Throwable t) {
                         ExceptionUtils.handleThrowable(t);
                         req.getReadListener().onError(t);
-                        return false;
+                        throw t;
                     } finally {
                         Thread.currentThread().setContextClassLoader(oldCL);
                     }



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


Mime
View raw message