Re: Possible bug when wrapping CGI/FastCGI generated pages
Brian Aker <[email protected]> Tue, 8 Jan 2008 01:04:12 -0800
| Newsgroups | gmane.comp.apache.mod-layout |
|---|---|
| Message-ID | <[email protected]> |
Hi!
Is the footer always right before the closing HTML tag, or is it
scattered around in the document?
This is a long shot but try this:
if (!r->main)
{
ap_remove_output_filter(f);
return ap_pass_brigade(f->next, b);
}
This is layout_filter()
It could be the logic is flipped on main, but I sort of doubt it.
Apache 1.3 had a much simpler concept for handling this :(
Cheers,
-Brian
On Jan 7, 2008, at 6:11 PM, Con Tassios wrote:
> On Mon, 7 Jan 2008, Brian Aker wrote:
>
>> So basically if FastCGI can't buffer the entire contents in one pass,
>> mod_layout applies the headers in multiple?
>
> Hi Brian,
>
> Yes, that is correct.
>
>
>> Does it ever triple?
>
>
> Yes. If the PHP generated page is say 220KB in size and the CGI
> output buffer
> is 64KB, the page served to the client will consist of 4 chunks of
> approximately the buffer size * N
>
> N
> 1 64KB
> 2 128KB
> 3 192KB
> 4 220KB
>
> Total size of served page = 604KB
>
> Each of these 4 chunks has the header and footer attached. Each
> subsequent
> chunk is the same as the previous plus the next 64KB of the original
> file. The
> last chunk is the complete file with the header and footer attached.
>
> _______________________________________________
> Mod_layout mailing list
> [email protected]
> http://lists.tangent.org/mailman/listinfo/mod_layout
--
_______________________________________________________
Brian "Krow" Aker, brian at tangent.org
Seattle, Washington
http://krow.net/ <-- Me
http://tangent.org/ <-- Software
http://exploitseattle.com/ <-- Fun
_______________________________________________________
You can't grep a dead tree.