Revolyssup commented on issue #12127: URL: https://github.com/apache/apisix/issues/12127#issuecomment-2788862299
@tanzhe-chinamobile-it 1. before_proxy is a plugin phase that is executed just before sending request to upstream. 2. ctx.picked_server is set only on first request in the access phase. On retries, the request goes back to balancer phase and this is not set which tells us that this is a retry. 3. ctx.proxy_retry_deadline = ngx_now() will make sure that there are no more tries after it. But this time the request will be sent. Because if this try fails and request comes back in balancer phase, it will check for deadline and the deadline will be exceeded. 4. Can you rephrase this point? I didn't get it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
