Welcome! Log In Create A New Profile

Advanced

Error handling from filter modules

October 15, 2015 09:38PM
I'm making changes to a filter module and when it detected an error it
returned NGX_ERROR however the response generated to the client isn't
the expected 500 internal server error I would have expected given said
return.

So the question is do filters have to manually call
ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); or is it
expected that the upper layers should actually do the right thing and
ensure the client doesn't get a bad response generated from the current
state of r with no indication an error occurred?

Regards
Steve

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

Error handling from filter modules

steveh 690 October 15, 2015 09:38PM

Re: Error handling from filter modules

Roman Arutyunyan 314 October 16, 2015 08:18AM

Re: Error handling from filter modules

Maxim Dounin 293 October 16, 2015 08:24AM

Re: Error handling from filter modules

Roman Arutyunyan 314 October 16, 2015 02:18PM

Re: Error handling from filter modules

Maxim Dounin 310 October 16, 2015 08:22AM

Re: Error handling from filter modules

steveh 408 October 16, 2015 01:16PM

Re: Error handling from filter modules

Maxim Dounin 292 October 19, 2015 01:00PM

Re: Error handling from filter modules

steveh 393 October 19, 2015 06:04PM

Re: Error handling from filter modules

Maxim Dounin 308 October 19, 2015 10:02PM

Re: Error handling from filter modules

steveh 408 October 16, 2015 12:50PM



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

Online Users

Guests: 196
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