[users@httpd] Accumulating response bucket brigades

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

 



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. I
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.

I was thinking along the lines of using ap_save_brigade on all the
brigades except for the last one, but I don't know which one is
last...
Is there a trivial way of accumulating the response brigades? or
knowing which brigade is last?
I can always count bytes (in case of content-length) or look for a
zero sized chunk (in case of content-encoding: chunked), but I'm
guessing that work is already done by the server's internals.

Thanks in advance,
Yoav Weiss.

---------------------------------------------------------------------
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