Re: Uncompressing incoming requests

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

 



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




Thanks,
~Abhi



----- Original Message -----
From: Nick Kew <nick@xxxxxxxxxxxx>
To: users@xxxxxxxxxxxxxxxx
Cc: 
Sent: Tuesday, June 5, 2012 8:06 PM
Subject: Re:  Uncompressing incoming requests

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


> I added "LogLevel debug" to the httpd.conf file I do not see any extra logs in the error_log file.  
> 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: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

---------------------------------------------------------------------
To unsubscribe, e-mail: users-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