httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhi Auradkar <>
Subject Re: [users@httpd] Uncompressing incoming requests
Date Thu, 07 Jun 2012 08:43:08 GMT
Hi Nick, 

I added some debug statements and error statements to mod_deflate code and built the module. 
The error is coming from the following 

 /* We didn't get the magic bytes. */
        if (len != 10 ||
            deflate_hdr[0] != deflate_magic[0] ||
            deflate_hdr[1] != deflate_magic[1]) {
            ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, "magic bytes don't match");
       // ---> I Added this error message 
            return APR_EGENERAL;

The client is using java.util's gzip to send a compressed message. Does that mean that the
gzip created from java.util library is not compatible with the 
one that mod_deflate is using?? 


----- Original Message -----
From: Nick Kew <>
Sent: Tuesday, June 5, 2012 8:06 PM
Subject: Re: [users@httpd] Uncompressing incoming requests

On Tue, 5 Jun 2012 05:10:10 -0700 (PDT)
Abhi Auradkar <> wrote:

> I added "LogLevel debug" to the httpd.conf file I do not see any extra logs in the error_log
> Should I do something further here to get detailed debug logs from mod_deflate? 

You should see quite a lot from mod_deflate if it's compressing
the output!

I can't say off the top of my head how much you'd see from it
doing nothing (as on your input), but at debug level I'd expect
it to tell you if it tries and fails to decompress something,
as opposed to (say) seeing content that's not labelled as
compressed and just getting out of the way.

Nick Kew

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message