Cheers, Martin
The new DefaultHttpBinding implementation in Camel 1.6.1 (after a patch
from CAMEL-1327) doesn't support streaming of large content with the
http response any more. If the out message of an exchange contains an
input stream it is read into memory (before it is written to the servlet
output stream). This is done inside the doWriteResponse() method.
Depending on the size of the stream this might result in an
OutOfMemoryError. Reading a response stream into memory should only be
done if a GZIP content encoding is explicitly requested, otherwise it
should be written to the servlet output stream directly. Is this an
issue or do I miss something?
- DefaultHttpBinding prevents response streaming Martin Krasser
- Re: DefaultHttpBinding prevents response streaming Willem Jiang
