cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asold...@apache.org
Subject [1/2] cxf git commit: [CXF-6227] Do not call connection.setFixedLengthStreamingMode(i) to prevent https://bugs.openjdk.java.net/browse/JDK-8044726
Date Thu, 29 Jan 2015 08:25:12 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 93c7a9839 -> f5a7119bb


[CXF-6227] Do not call connection.setFixedLengthStreamingMode(i) to prevent https://bugs.openjdk.java.net/browse/JDK-8044726


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/2e3c3400
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/2e3c3400
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/2e3c3400

Branch: refs/heads/3.0.x-fixes
Commit: 2e3c3400453fb3cc815c54a7c2e9c2bd192e1495
Parents: 93c7a98
Author: Alessio Soldano <asoldano@redhat.com>
Authored: Wed Jan 28 23:18:39 2015 +0100
Committer: Alessio Soldano <asoldano@redhat.com>
Committed: Thu Jan 29 09:21:00 2015 +0100

----------------------------------------------------------------------
 .../apache/cxf/transport/http/URLConnectionHTTPConduit.java  | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/2e3c3400/rt/transports/http/src/main/java/org/apache/cxf/transport/http/URLConnectionHTTPConduit.java
----------------------------------------------------------------------
diff --git a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/URLConnectionHTTPConduit.java
b/rt/transports/http/src/main/java/org/apache/cxf/transport/http/URLConnectionHTTPConduit.java
index b8fc075..9f44f35 100644
--- a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/URLConnectionHTTPConduit.java
+++ b/rt/transports/http/src/main/java/org/apache/cxf/transport/http/URLConnectionHTTPConduit.java
@@ -275,7 +275,13 @@ public class URLConnectionHTTPConduit extends HTTPConduit {
             return connection.usingProxy();
         }
         protected void setFixedLengthStreamingMode(int i) {
-            connection.setFixedLengthStreamingMode(i);
+            // [CXF-6227] do not call connection.setFixedLengthStreamingMode(i)
+            // to prevent https://bugs.openjdk.java.net/browse/JDK-8044726
+        }
+        protected void handleNoOutput() throws IOException {
+            if ("POST".equals(getMethod())) {
+                connection.getOutputStream().close();
+            }
         }
         protected void setupNewConnection(String newURL) throws IOException {
             HTTPClientPolicy cp = getClient(outMessage);


Mime
View raw message