tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1487604 - /tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Processor.java
Date Wed, 29 May 2013 19:27:43 GMT
Author: markt
Date: Wed May 29 19:27:43 2013
New Revision: 1487604

URL: http://svn.apache.org/r1487604
Log:
Simplify

Modified:
    tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Processor.java

Modified: tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Processor.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Processor.java?rev=1487604&r1=1487603&r2=1487604&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Processor.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Processor.java Wed May 29 19:27:43
2013
@@ -1542,13 +1542,10 @@ public abstract class AbstractHttp11Proc
                 asyncStateMachine.asyncOperation();
                 try {
                     if (outputBuffer.hasDataToWrite()) {
-                        //System.out.println("Attempting data flush!!");
-                        outputBuffer.flushBuffer(false);
-                    }
-                    //return if we have more data to write
-                    if (outputBuffer.hasDataToWrite()) {
-                        registerForEvent(false, true);
-                        return SocketState.LONG;
+                        if (outputBuffer.flushBuffer(false)) {
+                            registerForEvent(false, true);
+                            return SocketState.LONG;
+                        }
                     }
                 } catch (IOException x) {
                     if (getLog().isDebugEnabled()) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message