camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem jiang <willem.ji...@gmail.com>
Subject Re: Chunking issue with http producer
Date Wed, 03 Jul 2013 10:33:25 GMT
Thanks for sharing the solution with us.
I think we can enable this kind of feature when the http producer is working in the Bridge
mode.


--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Wednesday, July 3, 2013 at 5:47 PM, Bernard Ligny wrote:

> I finally found a solution that i am sharing here for the community.
> With that proposed patch, the streaming capability is preserved, and the
> latency is now much better:
>  
> <http://camel.465427.n5.nabble.com/file/n5735129/difference2.png>  
>  
>  
> Here are the details of my patching of "*HttpProducer.java*"
>  
>  
>  
> There is one small drawback: since the http connection is released only when
> the stream is closed, it is very important to...close the stream ;-)
> (NB: compared to AutoCloseInputStream, which automatically "/closes and
> discards the underlying stream as soon as the end of input has been
> reached/"...)
>  
> Yet interested by your opinion about other potential drawbacks...
>  
> Bernard.
>  
>  
>  
> --
> View this message in context: http://camel.465427.n5.nabble.com/Chunking-issue-with-http-producer-tp5735075p5735129.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).




Mime
View raw message