Author: remy.maucherat(a)jboss.com
Date: 2010-06-01 11:12:47 -0400 (Tue, 01 Jun 2010)
New Revision: 1480
Modified:
branches/2.1.x/java/org/apache/catalina/connector/OutputBuffer.java
branches/2.1.x/webapps/docs/changelog.xml
Log:
- JBWEB-169: Don't allow flush() after close() (seems obvious, but the OuputStream API
allows it, so it
was not guarded).
Modified: branches/2.1.x/java/org/apache/catalina/connector/OutputBuffer.java
===================================================================
--- branches/2.1.x/java/org/apache/catalina/connector/OutputBuffer.java 2010-06-01
15:06:56 UTC (rev 1479)
+++ branches/2.1.x/java/org/apache/catalina/connector/OutputBuffer.java 2010-06-01
15:12:47 UTC (rev 1480)
@@ -323,6 +323,8 @@
protected void doFlush(boolean realFlush)
throws IOException {
+ if (closed)
+ return;
if (suspended)
return;
Modified: branches/2.1.x/webapps/docs/changelog.xml
===================================================================
--- branches/2.1.x/webapps/docs/changelog.xml 2010-06-01 15:06:56 UTC (rev 1479)
+++ branches/2.1.x/webapps/docs/changelog.xml 2010-06-01 15:12:47 UTC (rev 1480)
@@ -17,6 +17,13 @@
<body>
<section name="JBoss Web 2.1.8.GA (remm)">
+ <subsection name="Catalina">
+ <changelog>
+ <fix>
+ <jira>169</jira>: Don't allow flush() after close(). (remm)
+ </fix>
+ </changelog>
+ </subsection>
<subsection name="Coyote">
<changelog>
<fix>
Show replies by date