hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Asankha C. Perera" <asan...@apache.org>
Subject Re: Truncated content-length delimited message bodies
Date Fri, 13 May 2011 10:02:29 GMT
Hi Oleg
> I think I have a slightly less hacky work-around for the problem. How
> about creating a custom version of ContentDecoderChannel that catches
> ConnectionClosedException and re-throws it as a runtime exception of
> some sort? This would enable your code to handle truncated messages and
> would not require the hack to be applied to HttpCore? Would that work
> for you?
If this is possible, it will be fine. However it seems like this is hard 
coded in NHttpConnectionBase.createContentDecoder() .. is there an easy 
way I did not notice to register my own decoder?
> I also believe we should release HttpCore 4.1.1 without a fix for the
> problem and take more time to work out a proper solution in the 4.2
> branch. Would that be acceptable?
Yes.. this is not a blocker for me, and does not need to hold the 
release further

thanks
asankha

-- 
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message