Author: markt
Date: Fri Jun 6 16:58:02 2014
New Revision: 1600963
URL: http://svn.apache.org/r1600963
Log:
Handle exceptions when trying to flush the response.
Modified:
tomcat/trunk/java/org/apache/catalina/valves/ErrorReportValve.java
Modified: tomcat/trunk/java/org/apache/catalina/valves/ErrorReportValve.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/valves/ErrorReportValve.java?rev=1600963&r1=1600962&r2=1600963&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/valves/ErrorReportValve.java
(original)
+++ tomcat/trunk/java/org/apache/catalina/valves/ErrorReportValve.java Fri Jun
6 16:58:02 2014
@@ -80,8 +80,13 @@ public class ErrorReportValve extends Va
if (response.isCommitted()) {
if (response.isErrorAfterCommit()) {
- // Flush any data that is still to be written to the client
- response.flushBuffer();
+ // Attempt to flush any data that is still to be written to the
+ // client
+ try {
+ response.flushBuffer();
+ } catch (Throwable t) {
+ ExceptionUtils.handleThrowable(t);
+ }
// Close immediately to signal to the client that something
went
// wrong
response.getCoyoteResponse().action(ActionCode.CLOSE_NOW,
null);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]