httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: [users@httpd] Accumulating response bucket brigades
Date Wed, 10 May 2006 11:42:59 GMT
On Tuesday 09 May 2006 22:44, Yoav Weiss wrote:
> Hi all,
>
> I'm an apache newbie, and I'm currently writing a new output filter.
> I'm interested in accumulating a full response in the filter, before I
> modify the data. I am aware of the performance implications, but it's
> something I must do in order to manipulate the content correctly.

Create a brigade in your filter, and transfer all incoming buckets
into it after using setaside to ensure they don't go out of scope.
When you see an EOS bucket, do your processing.

> should also state that most of the responses arrive from the web
> (using mod_proxy), so the response time and number of brigades vary
> according to network conditions.

Where the data come from is irrelevant.  If it works with mod_proxy,
it'll work equally with a local generator.

This would be more on-topic on the apache-modules list.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message