Nginx Brunzip

Maxim Dounin mdounin at
Mon Apr 20 18:52:24 UTC 2020


On Thu, Apr 16, 2020 at 03:48:27PM +1000, Mathew Heard wrote:

> Maxim,
> > Likely unrealted, but "ctx->flush = FLUSH_NOFLUSH" at
> >
> > is meaningless.
> Is beause of
> correct?
> Because FLUSH_FLUSH always resets state to FLUSH_NOFLUSH.

No.  Because of the "ctx->flush != FLUSH_NOFLUSH" condition at the 
very start of the same function.  In the particular place the 
ctx->field is guaranteed to be set to FLUSH_NOFLUSH, and there is 
no need to set it again.

As you can see in the original code, there is no assignment.  
Instead, it simply states that "ctx->flush == Z_NO_FLUSH" in a 


Maxim Dounin

More information about the nginx mailing list