githubxubin opened a new issue, #9141:
URL: https://github.com/apache/apisix/issues/9141

   ### Description
   
   I set the timeout times of retry in the route to 2. However, after packet 
capture, I retry all the time instead of twice. Is there any configuration 
problem
   
   the step is :
   1.Configure a route and set upstream services to be unavailable。
   2.Perform a routing access request, capture packets and observe the retry 
mechanism,However, instead of the expected two retries, you retry all the time
   
   the result:
   
   
![image](https://user-images.githubusercontent.com/39228009/226811569-fa9b62a4-de92-4d13-af8e-0a42f28bb78b.png)
   
   the route config:
   {
       "uri": "/*",
       "name": "测试超时",
       "priority": 1,
       "methods": [
           "GET",
           "POST",
           "PUT",
           "DELETE",
           "PATCH",
           "HEAD",
           "OPTIONS",
           "CONNECT",
           "TRACE"
       ],
       "plugins": {
           "basic-auth": {
               "disable": true,
               "password": "df",
               "sdf": "sdf",
               "username": "dd"
           }
       },
       "upstream": {
           "nodes": [
               {
                   "host": "192.168.96.70",
                   "port": 8086,
                   "weight": 1
               }
           ],
           "retries": 2,
           "timeout": {
               "connect": 6,
               "send": 6,
               "read": 6
           },
           "type": "roundrobin",
           "scheme": "http",
           "pass_host": "pass",
           "keepalive_pool": {
               "idle_timeout": 60,
               "requests": 1000,
               "size": 320
           },
           "retry_timeout": 22
       },
       "labels": {
           "1": "1"
       },
       "status": 1
   } 
   
   
   
   ### Environment
   
   - APISIX version (run `apisix :2.15-alpine `):
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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]

Reply via email to