| Subject: | Re: proxy_next_upstream and POSTs | |
|---|---|---|
| From: | Piotr Sikora (piot...@frickle.com) | |
| Date: | May 10, 2011 7:31:35 am | |
| List: | ru.sysoev.nginx | |
Refine Search
| From | Sent On | Attachments |
|---|---|---|
| Jonathan Leibiusky | May 9, 2011 9:42 am | |
| Jonathan Leibiusky | May 9, 2011 3:37 pm | |
| Antoine Bonavita | May 10, 2011 12:21 am | |
| Jonathan Leibiusky | May 10, 2011 7:09 am | |
| Piotr Sikora | May 10, 2011 7:31 am | |
| Jonathan Leibiusky | May 10, 2011 7:47 am | |
| Jonathan Leibiusky | May 10, 2011 12:30 pm | |
| Antoine Bonavita | May 11, 2011 1:02 am | |
| agentzh | May 12, 2011 3:30 am | |
| agentzh | May 12, 2011 3:34 am |
| Subject: | Re: proxy_next_upstream and POSTs | |
|---|---|---|
| From: | Piotr Sikora (piot...@frickle.com) | |
| Date: | May 10, 2011 7:31:35 am | |
| List: | ru.sysoev.nginx | |
Hi,
2. Any good advice on how I should do it? I was thinking on adding the validation somewhere in ngx_http_upstream_test_next (ngx_http_upstream.c), something like: if (r->method == NGX_HTTP_POST) { return NGX_DECLINED; }
Keep in mind that you should decline sending request to another backend, only if you already sent it upstream. There is a bunch of errors (bad gateway, connection timeout, etc) which could lead to the code path in question, for which you should still send request to another backend.
Best regards, Piotr Sikora < piot...@frickle.com >
_______________________________________________ nginx mailing list ngi...@nginx.org http://nginx.org/mailman/listinfo/nginx

