Mantis - Resin
Viewing Issue Advanced Details
955 minor always 02-21-06 09:13 02-27-06 14:03
ferg  
ferg  
normal  
closed  
fixed  
none    
none 3.0.19  
0000955: Hessian HttpURLConnection.setChunkedStreamingMode
(rep by Alon Salant)

I see that HessianProxyFactory supports the Java 1.5 HttpURLConnection method ‘setTimeout’. There is another new method that is very helpful (if it works as promised) for posting large chunks of data with HttpURLConnection that would be great to be able to use too.
 
We have found that because Hessian uses POST to make calls, the Sun class PosterOutputStream which extends ByteArrayOutputStream is used to write out serialized Hessian calls. This means that all the data to be posted is duplicated before being sent.
 
According to this forum post:
  http://forum.java.sun.com/thread.jspa?threadID=418441&messageID=2816084 [^]
and this bug report:
  http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5026745 [^]
 
this issue has been resolved in Java 1.5 with the ability for HttpURLConnection to send POST data in chunks over HTTP 1.1.
 
Can we get support for this in Hessian?
 

Notes
(0000908)
ferg   
02-27-06 14:03   
fixed in 3.0.19