Issue 53 in urlrewritefilter: Improvement: When proxying requests - stream the data to reduce memory consumption

View: New views
1 Messages — Rating Filter:   Alert me  

Issue 53 in urlrewritefilter: Improvement: When proxying requests - stream the data to reduce memory consumption

by codesite-noreply :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 53 by ghillert: Improvement: When proxying requests - stream the  
data to reduce memory consumption
http://code.google.com/p/urlrewritefilter/issues/detail?id=53

What steps will reproduce the problem?

1) Use urlrewritefilter to proxy requests to a new url
2) post large files to that url which are proxied over to other url
3) instead of streaming, the posted data is temporarily stored in memory
    before proxied over to the other URL, causing out of memory exceptions

What is the expected output? What do you see instead?

Ability to upload (post) file with unlimited file sizes without increasing
the memory consumption of the server.

What version of the product are you using? On what operating system?

3.2.0

Please provide any additional information below.

Attached, please find a patch against the 3.2.0-tagged version from SVN
that fixed the issue for the project I am working on.

With the patch I am able to upload e.g. 1GB of data without increasing the
memory footprint of the servlet container.

I implemented a custom request entity
(org.apache.commons.httpclient.methods.RequestEntity) that allows me to
directly stream the data.

Attachments:
        patch_urlrewritefilter_proxy.diff  4.7 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "UrlRewrite" group.
To post to this group, send email to urlrewrite@...
To unsubscribe from this group, send email to urlrewrite+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/urlrewrite?hl=en
-~----------~----~----~----~------~----~------~--~---