[PATCH] ngx_gzip might hang the request for slow downstreams

Yichun Zhang (agentzh) agentzh at gmail.com
Sat Oct 26 05:55:08 UTC 2013


On Fri, Oct 25, 2013 at 6:48 PM, Maxim Dounin wrote:
> Could you please elaborate how do you see the problem?  In 1.5.6
> this probably can be triggered with incomplete upstream response,
> which intentionally results in no last buffer send, but with such
> responses nothing is guaranteed anyway.  And I don't think there
> are any legitimate ways to trigger it in 1.4.3.

This is triggered by my own (3rd-party) module, ngx_lua. This module
provides a ngx.flush(true) API function that flushes out all pending
output data and *wait* (nonblockingly) until all outputs are *indeed*
flushed out (into the system socket send buffer):


Best regards,

More information about the nginx-devel mailing list