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: [email protected]
For additional commands, e-mail: [email protected]