cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asold...@apache.org
Subject cxf git commit: [CXF-6227] Do not call connection.setFixedLengthStreamingMode(i) to prevent https://bugs.openjdk.java.net/browse/JDK-8044726
Date Wed, 28 Jan 2015 22:20:08 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 4710298eb -> ea4a8deb4


[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/ea4a8deb
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/ea4a8deb
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/ea4a8deb

Branch: refs/heads/master
Commit: ea4a8deb4f5cc994ab3896bd134c57783f2f8c51
Parents: 4710298
Author: Alessio Soldano <asoldano@redhat.com>
Authored: Wed Jan 28 23:18:39 2015 +0100
Committer: Alessio Soldano <asoldano@redhat.com>
Committed: Wed Jan 28 23:18:39 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/ea4a8deb/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