HomeSoftware Heritage

Fix hang on Gzip decompression

Description

Fix hang on Gzip decompression

'LimitedInputFilter' should be applied before the Gzip middleware as
'CONTENT_LENGTH' refers to the size of the *compressed* body. If
applied in wrong order, this may cause 'copyfileobj()' to try to read
more data from the socket than is available, resulting in a call to
'recv()' that hangs forever.

Details

Provenance
Jonas Haag <jonas@lophus.org>Authored on Apr 12 2016, 3:40 PM
ardumontPushed on Sep 27 2021, 5:34 PM
Parents
rPPDW7b7043852cca: Don't use deprecated assertEquals.
Branches
Unknown
Tags
Unknown

Event Timeline