Closed Bug 816302 Opened 9 years ago Closed 9 years ago

[socorro-dev] accept gzip-encoded HTTP multi-part form POST in Zeus or Apache


(Infrastructure & Operations Graveyard :: WebOps: Other, task, P3)


(Not tracked)



(Reporter: rhelmer, Unassigned)



(Whiteboard: [triaged 20121130])

We'd like to test out receiving gzipped HTTP POSTs on

I am hoping that we can terminate it on the zeus as we do with SSL, since WSGI spec doesn't cover this case and most implementations seem to just read up to the provided Content-Length (which will be far too small in the case of a compressed file) - see and linked thread.
Blocks: 816164, 816170
Just FYI, we *might* not need this - we went ahead and tried doing this with Apache, in the <Location /submit> in /etc/httpd/conf.d/
SetInputFilter DEFLATE

Then, kats was able to submit fine:

I think it'd still be more convenient to do this on the loadbalancer, and we'll need to make sure we don't run into any problems, but it does seem to work without modification to the code. It may be possible that our mod_wsgi handler (part of ignores the Content-Length and reads to the end of the input data (which it should per the spec).

This whole "Content-Length" issue is mentioned on also, FWIW. That probably explains it better than I am.
That Apache solution seems a lot more likely... as far as we've been able to determine, Zeus only supports gzip compression on outbound traffic, not decompression on inbound POSTs. Thanks for finding it!
Summary: [socorro-dev] accept gzip-encoded HTTP multi-part form POST on zeus → [socorro-dev] accept gzip-encoded HTTP multi-part form POST in Zeus or Apache
Whiteboard: [triaged 20121130]
Priority: -- → P3
Going to handle this in Apache on the collectors instead, since Zeus does not seem to support it per comment 2. Thanks for looking into this!
Closed: 9 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 818682
Component: Server Operations: Web Operations → WebOps: Other
Product: → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.