Author: markt
Date: Wed Sep 30 13:26:44 2015
New Revision: 1706023

URL: http://svn.apache.org/viewvc?rev=1706023&view=rev
Log:
Simplify. No point sending flush message if an I/O error has already happened.

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=1706023&r1=1706022&r2=1706023&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:26:44 2015
@@ -335,18 +335,15 @@ public class AjpProcessor extends Abstra
             if (response.isCommitted())
                 return;
 
-            // Validate and write response headers
             try {
+                // Validate and write response headers
                 prepareResponse();
-            } catch (IOException e) {
-                setErrorState(ErrorState.CLOSE_NOW, e);
-            }
-
-            try {
+                // Tell the proxy to flush this data to the client
                 flush(false);
             } catch (IOException e) {
                 setErrorState(ErrorState.CLOSE_NOW, e);
             }
+
             break;
         }
         case CLOSE: {



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

Reply via email to