Welcome! Log In Create A New Profile

Advanced

Proxy Retry Logic

Sirsiwal, Umesh
December 22, 2010 02:28PM
All,
I am trying to write a module which uses a number of subrequests to talk to backend servers. Combines the responses and sends them back to the client. The communication with the backend server is using HTTP and I am using proxy_pass for that.

The peculiarity in our setup is that on failure-retry I need to use a different URI than the original request. Current, proxy reinit request does not regenerate request hence cannot be used for the purpose. I tried using the error_page in the subrequest location to point to a different location. But, it seems that the error_page is not evaluated on subrequest. The only option I can think of is for my module to detect error and issue a new subrequest.

Is this the best solution for this problem? Will that affect subrequest response concatenation?


-Umesh

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

Proxy Retry Logic

Sirsiwal, Umesh 1745 December 22, 2010 02:28PM

Re: Proxy Retry Logic

Maxim Dounin 614 December 22, 2010 06:40PM

RE: Proxy Retry Logic

Sirsiwal, Umesh 697 December 22, 2010 07:56PM

Re: Proxy Retry Logic

Eugaia 619 December 22, 2010 08:20PM

RE: Proxy Retry Logic

Sirsiwal, Umesh 633 December 22, 2010 08:52PM

Re: Proxy Retry Logic

Eugaia 708 December 22, 2010 09:10PM

RE: Proxy Retry Logic

Sirsiwal, Umesh 569 December 22, 2010 09:26PM

Re: Proxy Retry Logic

Eugaia 595 December 22, 2010 09:38PM

RE: Proxy Retry Logic

Sirsiwal, Umesh 630 December 22, 2010 09:52PM

Re: Proxy Retry Logic

Eugaia 840 December 23, 2010 04:00AM

Re: Proxy Retry Logic

Eugaia 659 December 23, 2010 04:36AM

RE: Proxy Retry Logic

Sirsiwal, Umesh 773 December 23, 2010 08:12AM

Re: Proxy Retry Logic

Eugaia 551 December 22, 2010 09:22PM



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

Online Users

Guests: 70
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready