httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49276] mod_cgi allocates unnecessary amounts of memory
Date Thu, 13 May 2010 12:11:02 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49276

--- Comment #2 from Stefan Fritsch <sf@sfritsch.de> 2010-05-13 08:10:57 EDT ---
Your patch causes all output from the cgi to be copied again, which is not
really efficient.

Besides, the memory of the bucket should be freed as soon as the data has been
sent over the network. I guess what you are really seeing is one of the memory
usage issues fixed in r821471 in trunk.

You could try if the content_length_filter and chunk_filter parts of r821471
fix your problem. It's

http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http/chunk_filter.c?r1=821471&r2=821470&pathrev=821471

and the first three hunks of

http://svn.apache.org/viewvc/httpd/httpd/trunk/server/protocol.c?r1=821471&r2=821470&pathrev=821471


I haven't checked if it applies cleanly to 2.2.x, though.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message