remm 2004/01/08 05:09:04
Modified: catalina/src/share/org/apache/coyote/tomcat5
OutputBuffer.java
Log:
- Throw a wrapped IOE when an exception occurs during a low level flush.
Revision Changes Path
1.7 +6 -0
jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/OutputBuffer.java
Index: OutputBuffer.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/OutputBuffer.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- OutputBuffer.java 12 Sep 2003 13:16:41 -0000 1.6
+++ OutputBuffer.java 8 Jan 2004 13:09:04 -0000 1.7
@@ -368,6 +368,12 @@
if (realFlush) {
coyoteResponse.action(ActionCode.ACTION_CLIENT_FLUSH,
coyoteResponse);
+ // If some exception occurred earlier, or if some IOE occurred
+ // here, notify the servlet with an IOE
+ if (coyoteResponse.isExceptionPresent()) {
+ throw new ClientAbortException
+ (coyoteResponse.getErrorException());
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]