Author: markt
Date: Wed Sep 30 13:30:35 2015
New Revision: 1706027
URL: http://svn.apache.org/viewvc?rev=1706027&view=rev
Log:
Simply. flush(boolean) was only ever called with true
Modified:
tomcat/trunk/java/org/apache/coyote/ajp/AjpProcessor.java
Modified: tomcat/trunk/java/org/apache/coyote/ajp/AjpProcessor.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/ajp/AjpProcessor.java?rev=1706027&r1=1706026&r2=1706027&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/ajp/AjpProcessor.java (original)
+++ tomcat/trunk/java/org/apache/coyote/ajp/AjpProcessor.java Wed Sep 30
13:30:35 2015
@@ -371,7 +371,7 @@ public class AjpProcessor extends Abstra
}
try {
- flush(true);
+ flush();
} catch (IOException e) {
setErrorState(ErrorState.CLOSE_NOW, e);
}
@@ -1383,11 +1383,11 @@ public class AjpProcessor extends Abstra
/**
* Callback to write data from the buffer.
*/
- private void flush(boolean explicit) throws IOException {
+ private void flush() throws IOException {
// Calling code should ensure that there is no data in the buffers for
// non-blocking writes.
// TODO Validate the assertion above
- if (explicit && !finished) {
+ if (!finished) {
// Send the flush message
socketWrapper.write(true, flushMessageArray, 0,
flushMessageArray.length);
socketWrapper.flush(true);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]