Re: [users@httpd] Accumulating response bucket brigades

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux