Welcome! Log In Create A New Profile

Advanced

Re: Creating One-way connections or Dont wait for upstream

Reinis Rozitis
August 16, 2013 08:18AM
> The client side of the application does not care about the response from
> nginx. It would be acceptable to send a blank
response or send no database at all and simple just close the connection.
After or as the connection is closed I would like the data to work internal
within nginx as normal selecting an upstream proxying it, if the upstream
timeouts or has an error still be able to use nginx_next_upstream.

> What would a configuration like this look like ?


If you can (force) close the connection from client side then you can try
proxy_ignore_client_abort setting (
http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_ignore_client_abort
) - which will make nginx to complete the request to upstream.

The other approach (more options to "program" nginx) approach could be to
use something like Echo module ( http://wiki.nginx.org/HttpEchoModule ) from
http://openresty.org/

rr

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

Creating One-way connections or Dont wait for upstream

wojonstech August 16, 2013 06:32AM

Re: Creating One-way connections or Dont wait for upstream

Reinis Rozitis August 16, 2013 08:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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