cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r759964 - /cxf/trunk/api/src/main/java/org/apache/cxf/io/CachedOutputStream.java
Date Mon, 30 Mar 2009 13:36:45 GMT
Author: dkulp
Date: Mon Mar 30 13:36:45 2009
New Revision: 759964

URL: http://svn.apache.org/viewvc?rev=759964&view=rev
Log:
Lock the outputstream on close.  Prevents double logging of outbound messages

Modified:
    cxf/trunk/api/src/main/java/org/apache/cxf/io/CachedOutputStream.java

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/io/CachedOutputStream.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/io/CachedOutputStream.java?rev=759964&r1=759963&r2=759964&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/io/CachedOutputStream.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/io/CachedOutputStream.java Mon Mar 30 13:36:45
2009
@@ -168,6 +168,7 @@
     
     public void close() throws IOException {
         currentStream.flush();
+        outputLocked = true;
         if (null != callbacks) {
             for (CachedOutputStreamCallback cb : callbacks) {
                 cb.onClose(this);



Mime
View raw message