SOURCES: java-hessian-libgcj.patch (NEW) - hessian uses setChunkedStreaming...

pawelz pawelz at pld-linux.org
Wed Mar 11 15:33:17 CET 2009


Author: pawelz                       Date: Wed Mar 11 14:33:17 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- hessian uses setChunkedStreamingMode method of com.sun.net.URL class.  This
  function is java SE 1.5 feature, but it is still unimplemented by
  gnu-classpath. This patch disables part of code that uses this method.  It
  should not affect hessian functionality. If you do not want this patch, you
  have to compile hessian with java-sun.

---- Files affected:
SOURCES:
   java-hessian-libgcj.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/java-hessian-libgcj.patch
diff -u /dev/null SOURCES/java-hessian-libgcj.patch:1.1
--- /dev/null	Wed Mar 11 15:33:18 2009
+++ SOURCES/java-hessian-libgcj.patch	Wed Mar 11 15:33:11 2009
@@ -0,0 +1,19 @@
+--- java-hessian-3.2.1/com/caucho/hessian/client/HessianProxy.java~	2008-10-14 16:09:04.000000000 +0200
++++ java-hessian-3.2.1/com/caucho/hessian/client/HessianProxy.java	2009-03-11 14:18:43.000000000 +0100
+@@ -301,16 +301,6 @@
+     boolean isValid = false;
+ 
+     try {
+-      // Used chunked mode when available, i.e. JDK 1.5.
+-      if (_factory.isChunkedPost() && conn instanceof HttpURLConnection) {
+-	try {
+-	  HttpURLConnection httpConn = (HttpURLConnection) conn;
+-
+-	  httpConn.setChunkedStreamingMode(8 * 1024);
+-	} catch (Throwable e) {
+-	}
+-      }
+-    
+       addRequestHeaders(conn);
+ 
+       OutputStream os = null;
================================================================


More information about the pld-cvs-commit mailing list