[ 
https://issues.apache.org/jira/browse/TOMAHAWK-1177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16800826#comment-16800826
 ] 

Andreas Bergmann commented on TOMAHAWK-1177:
--------------------------------------------

Is there a chance that this will be fixed ?

We have huge Problems with the ExtensionsFilter when generating bigger Files as 
Postback...
When sending Files it'll often result in an OutOfMemory-Exception 

> ExtensionsFilter should not buffer data for certain content-types
> -----------------------------------------------------------------
>
>                 Key: TOMAHAWK-1177
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1177
>             Project: MyFaces Tomahawk
>          Issue Type: Improvement
>          Components: ExtensionsFilter
>    Affects Versions: 1.1.6
>            Reporter: Simon Kitching
>            Priority: Minor
>
> Currently, ExtensionsFilter arranges for all data generated by a request to 
> be buffered. Then after the request is complete it checks the content-type 
> http header and skips any further processing if the type is not "text/html" 
> or similar. 
> Maybe the response-wrapper class could catch the start of response data 
> writing, check its headers (which will be complete at that time) and then for 
> non-html responses just stream the data directly rather than buffer it. This 
> will save time and memory usage when a request to a .jsf url causes a 
> non-html response to be returned. This isn't very often, but sometimes people 
> do generate pdfs etc as a result of a jsf postback.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to