Author: billbarker
Date: Sun Sep 30 17:21:48 2007
New Revision: 580815
URL: http://svn.apache.org/viewvc?rev=580815&view=rev
Log:
Fix problem where client-flush loses headers if the response isn't committed yet
Modified:
tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java
Modified: tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java
URL:
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java?rev=580815&r1=580814&r2=580815&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java
(original)
+++ tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java Sun Sep
30 17:21:48 2007
@@ -276,12 +276,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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]