You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2015/12/01 16:18:09 UTC
svn commit: r1717445 -
/tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java
Author: markt
Date: Tue Dec 1 15:18:09 2015
New Revision: 1717445
URL: http://svn.apache.org/viewvc?rev=1717445&view=rev
Log:
Fix https://bz.apache.org/bugzilla/show_bug.cgi?id=58657
Exceptions in the Servlet 3.1 [Read|Write]Listener do not need to be immediately fatal to the connection. Allow an error response to be written.
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=1717445&r1=1717444&r2=1717445&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java (original)
+++ tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java Tue Dec 1 15:18:09 2015
@@ -216,7 +216,7 @@ public class CoyoteAdapter implements Ad
} catch (Throwable t) {
ExceptionUtils.handleThrowable(t);
writeListener.onError(t);
- throw t;
+ success = false;
} finally {
request.getContext().unbind(false, oldCL);
}
@@ -238,7 +238,7 @@ public class CoyoteAdapter implements Ad
} catch (Throwable t) {
ExceptionUtils.handleThrowable(t);
readListener.onError(t);
- throw t;
+ success = false;
} finally {
request.getContext().unbind(false, oldCL);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org