Niklas Therning wrote:
Luis Neves wrote:

I still don't know how to properly fixed the decoder but for now this inelegant
fix will do.
<snip/>

Well, in any way, I think MINA should be able to handle faulty clients like these more gracefully. OOM isn't acceptable. Please file a JIRA issue and we'll look into it.
Just thinking that this problem is not specific to the HttpDecoder. It would be very valuable to be able to handle big chunks of data as streamed data instead as byte[], so that the decoder won't be swamped by huge packets stored in memory. A good strategy could be to stream to disk any packet above a certain size (say, 4 k), until the decoder has finished his work.

That means we have to write a streamed decoder : it should not be such a complex task...

We need it in ADS, because we can receive massive pieces of data (like pictures : some Mb), and we can't afford to store them in memory until the full load has been received.

Note : we know that since months (years ?) but never found time to work on this subject ... :/

/Niklas




--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org


Reply via email to