Welcome! Log In Create A New Profile

Advanced

Re: nginx + my module crashes only when ignore client abort = on

Maxim Dounin
March 14, 2013 12:34PM
Hello!

On Thu, Mar 14, 2013 at 11:36:58AM -0400, gadh wrote:

> i use nginx ver 1.2.5 (also tried 1.2.7) with my module that sends
> subrequest to an upstream, waits untill response get back, then goes to
> backend upstream and fetch the regular web page from it.
> when i add to nginx conf "proxy_ignore_client_abort on;", nginx crash with
> signal 11 (seg fault) when i do "ab" test and stop it in the middle of the
> (log: "client prematurely closed..." etc.).
> when i cancel my subrequest - no crash
> or: when i remove the proxy_ignore_client_abort (default off) - no crash,
> even with the subrequest.

Description of the problem suggests there is something wrong with
request reference counting, likely caused by what your module
does. It's very easy to screw it up, especially when trying to do
subrequests before the request body is received.

Hard to say anything else without the code.

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

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

nginx + my module crashes only when ignore client abort = on

gadh March 14, 2013 11:36AM

Re: nginx + my module crashes only when ignore client abort = on

gadh March 14, 2013 11:58AM

Re: nginx + my module crashes only when ignore client abort = on

Maxim Dounin March 14, 2013 12:34PM

Re: nginx + my module crashes only when ignore client abort = on

gadh March 14, 2013 12:46PM

Re: nginx + my module crashes only when ignore client abort = on

Maxim Dounin March 14, 2013 01:06PM

Re: nginx + my module crashes only when ignore client abort = on

gadh March 17, 2013 05:47AM

Re: nginx + my module crashes only when ignore client abort = on

gadh March 17, 2013 03:00PM

Re: nginx + my module crashes only when ignore client abort = on

Maxim Dounin March 17, 2013 07:54PM

Re: nginx + my module crashes only when ignore client abort = on

gadh March 18, 2013 01:40AM

Re: nginx + my module crashes only when ignore client abort = on

Maxim Dounin March 18, 2013 07:18AM

Re: nginx + my module crashes only when ignore client abort = on

gadh March 18, 2013 07:24AM

Re: nginx + my module crashes only when ignore client abort = on

gadh March 18, 2013 09:45AM

Re: nginx + my module crashes only when ignore client abort = on

gadh April 09, 2013 08:59AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 161
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready