tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r581384 - /tomcat/sandbox/gdev6x/java/org/apache/jk/core/MsgContext.java
Date Tue, 02 Oct 2007 20:58:19 GMT
Author: fhanik
Date: Tue Oct  2 13:58:19 2007
New Revision: 581384

URL: http://svn.apache.org/viewvc?rev=581384&view=rev
Log:
forward port from Tomcat 5.x fix

Modified:
    tomcat/sandbox/gdev6x/java/org/apache/jk/core/MsgContext.java

Modified: tomcat/sandbox/gdev6x/java/org/apache/jk/core/MsgContext.java
URL: http://svn.apache.org/viewvc/tomcat/sandbox/gdev6x/java/org/apache/jk/core/MsgContext.java?rev=581384&r1=581383&r2=581384&view=diff
==============================================================================
--- tomcat/sandbox/gdev6x/java/org/apache/jk/core/MsgContext.java (original)
+++ tomcat/sandbox/gdev6x/java/org/apache/jk/core/MsgContext.java Tue Oct  2 13:58:19 2007
@@ -275,12 +275,15 @@
             
         } else if( actionCode==ActionCode.ACTION_CLIENT_FLUSH ) {
             if( log.isDebugEnabled() ) log.debug("CLIENT_FLUSH " );
+            Response res = (Response)param;
+            if(!res.isCommitted()) {
+		action(ActionCode.ACTION_COMMIT, res);
+	    }
             try {
                 source.flush( null, this );
             } catch(IOException iex) {
                 // This is logged elsewhere, so debug only here
                 log.debug("Error during flush",iex);
-                Response res = (Response)param;
                 res.setErrorException(iex);
                 setStatus(JK_STATUS_ERROR);
             }



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


Mime
View raw message