Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] ngx_gzip might hang the request for slow downstreams

Maxim Dounin
October 30, 2013 08:08PM
Hello!

On Mon, Oct 28, 2013 at 03:37:44PM -0700, Yichun Zhang (agentzh) wrote:

> Hello!
>
> On Mon, Oct 28, 2013 at 2:02 PM, Maxim Dounin wrote:
> >>
> >> - if (ctx->nomem) {
> >> + if (ctx->nomem || in == NULL) {
> >>
> >> /* flush busy buffers */
> >
> > Is the same problem exists in the gunzip filter, which has very
> > similar code?
>
> Yes. I've reproduced the request hang in the gunzip filter module as
> well, with the following minimal test case:
>
> https://github.com/chaoslawful/lua-nginx-module/commit/594f55b
>
> > Is a similar patch needed there?
> >
>
> Yes. I can confirm that a similar patch fixes the hang on my side.
>
> > And, BTW, do you care to provide a Mercurial changeset, as
> > suggested by nginx.org/en/docs/contributing_changes.html? It's
> > not something required, but will make sure your name will be kept
> > in history as a proper person to blame. :)
> >
>
> Here we go:
>
> # HG changeset patch
> # User Yichun Zhang <agentzh@gmail.com>
> # Date 1382997696 25200
> # Branch gzip-flush
> # Node ID 8985d6cc9a4334e954909c130e6204c6fc673d7e
> # Parent e6a1623f87bc96d5ec62b6d77356aa47dbc60756
> Flush pending data when incoming chain is NULL in gzip and gunzip modules

Committed with minor commit log changes, thanks.

--
Maxim Dounin
http://nginx.org/en/donation.html

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] ngx_gzip might hang the request for slow downstreams

Yichun Zhang (agentzh) 866 October 25, 2013 08:18PM

Re: [PATCH] ngx_gzip might hang the request for slow downstreams

Maxim Dounin 377 October 25, 2013 09:50PM

Re: [PATCH] ngx_gzip might hang the request for slow downstreams

Yichun Zhang (agentzh) 366 October 26, 2013 01:56AM

Re: [PATCH] ngx_gzip might hang the request for slow downstreams

Yichun Zhang (agentzh) 403 October 26, 2013 02:00AM

Re: [PATCH] ngx_gzip might hang the request for slow downstreams

Maxim Dounin 294 October 26, 2013 05:42PM

Re: [PATCH] ngx_gzip might hang the request for slow downstreams

Yichun Zhang (agentzh) 322 October 26, 2013 08:18PM

Re: [PATCH] ngx_gzip might hang the request for slow downstreams

Maxim Dounin 343 October 27, 2013 07:16AM

Re: [PATCH] ngx_gzip might hang the request for slow downstreams

Maxim Dounin 367 October 27, 2013 10:08AM

Re: [PATCH] ngx_gzip might hang the request for slow downstreams

Yichun Zhang (agentzh) 308 October 27, 2013 06:04PM

Re: [PATCH] ngx_gzip might hang the request for slow downstreams

Maxim Dounin 294 October 28, 2013 05:04PM

Re: [PATCH] ngx_gzip might hang the request for slow downstreams

Yichun Zhang (agentzh) 406 October 28, 2013 06:40PM

Re: [PATCH] ngx_gzip might hang the request for slow downstreams

Maxim Dounin 419 October 30, 2013 08:08PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready