camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Krasser <>
Subject DefaultHttpBinding prevents response streaming
Date Wed, 27 May 2009 12:59:15 GMT
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?


View raw message