cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1548109 - /cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/soap/RetransmissionQueueImpl.java
Date Thu, 05 Dec 2013 12:33:10 GMT
Author: ay
Date: Thu Dec  5 12:33:09 2013
New Revision: 1548109

URL: http://svn.apache.org/r1548109
Log:
[CXF-5435] WS-RM's retranmission should call conduit.close(message) after successful retransmission

Modified:
    cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/soap/RetransmissionQueueImpl.java

Modified: cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/soap/RetransmissionQueueImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/soap/RetransmissionQueueImpl.java?rev=1548109&r1=1548108&r2=1548109&view=diff
==============================================================================
--- cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/soap/RetransmissionQueueImpl.java
(original)
+++ cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/soap/RetransmissionQueueImpl.java
Thu Dec  5 12:33:09 2013
@@ -477,7 +477,8 @@ public class RetransmissionQueueImpl imp
             // copy saved output stream to new output stream in chunks of 1024
             IOUtils.copyAndCloseInput(bis, os);
             os.flush();
-            os.close();
+            // closing the conduit this way will close the underlining stream that is os.
+            c.close(message);
         } catch (ConnectException ex) {
             //ignore, we'll just resent again later
         } catch (IOException ex) {



Mime
View raw message