My first instinct — on lines from the top of the response body being missing — would be a header problem. Does your error_log have anything to say about the issue?
I'm not sure if Apache::GzipChain is actually the culprit. The reason I say this is twofold; the Vary header is missing, and the main handler won’t even have registered itself called like that from telnet.
The Vary header is a list of factors used in content negotiation: Apache::GzipChain should always add ‘Accept-Encoding’ to the Vary header if it’s listed in the output chain in the conf.
As for running, it even won’t register itself with Apache::OutputChain unless ‘gzip’ is found in the Accept-Encoding header.
Here are a few suggestion to try (in no overly particular order):
- Check your error_log.
- Try with Apache::PassHTML instead of Apache::Registry as the last module in the chain, and point it at a static html document. This should tell you if Apache::GzipChain is working properly by itself. To test this easily with telnet, add PerlSetVar GzipForce On in that directory container (that var bypasses the normal negotiation). You should see the proper headers, including Content-Encoding, followed by a bunch of garbage (the gzipped output).
- Update to the current versions off all the modules in the chain; if possible.
- Out of curiosity, try running with PerlSetHeader Off
- Make sure your Apache::Registry scripts play by the proper header rules outlined here.
- Make sure you don’t make any calls to $r->http_send_header.
That’s about all I can think of (I haven’t actually used Apache::OutputChain for quite a while, I’m an Apache::Filter user now ;). Hopefully one of those suggestion works, or at least leads you in the proper direction.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.