<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">We use nginx's retry mechanism on timeout and errors, but we'd like to have some way (custom header \ url param) to make our web server know that the request its handling is actually a retry.<div><br></div><div>We've tried adding <span style="color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif;font-size:13px">$proxy_add_x_forwarded_for and $upstrea_addr but the first didn't return the correct IP and the second was always empty.</span></div><div><span style="color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif;font-size:13px">We've also tried using $request_time as a way to heuristically guess if this is a retry but it seems to be calculated once before the first request and reused on the following retries.</span></div><div><span style="color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif;font-size:13px"><br></span></div><div><span style="color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif;font-size:13px">Is it possible?</span></div><div><span style="color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif;font-size:13px"><br></span></div><div><span style="color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif;font-size:13px">We've nginx plus license if there's a feature we can use there for that.</span></div><div><span style="color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif;font-size:13px"><br></span></div><div><span style="color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif;font-size:13px">Thanks!</span></div></div>
</blockquote></div></div>