tokers commented on issue #5559:
URL: https://github.com/apache/apisix/issues/5559#issuecomment-974982887


   > # route config
   > ```json
   > {
   >   "uri": "/testslow",
   >   "name": "testslow",
   >   "methods": [
   >     "GET",
   >     "POST",
   >     "PUT",
   >     "DELETE",
   >     "PATCH",
   >     "HEAD",
   >     "OPTIONS",
   >     "CONNECT",
   >     "TRACE"
   >   ],
   >   "plugins": {
   >     "proxy-rewrite": {
   >       "regex_uri": [
   >         "/(.*)",
   >         "/get?foo1=bar1&foo2=$1"
   >       ]
   >     }
   >   },
   >   "upstream": {
   >     "nodes": [
   >       {
   >         "host": "httpbin.org",
   >         "port": 80,
   >         "weight": 1
   >       }
   >     ],
   >     "timeout": {
   >       "connect": 6,
   >       "send": 6,
   >       "read": 6
   >     },
   >     "type": "roundrobin",
   >     "scheme": "http",
   >     "pass_host": "node",
   >     "keepalive_pool": {
   >       "idle_timeout": 60,
   >       "requests": 1000,
   >       "size": 320
   >     }
   >   },
   >   "status": 1
   > }
   > ```
   > 
   > # tcpdump when use firefox
   > 
![image](https://user-images.githubusercontent.com/15232738/142602469-85efb3d0-1476-4369-ae03-e8ac76067f16.png)
   > 
   > # tcpdump when use curl
   > 
![image](https://user-images.githubusercontent.com/15232738/142602759-8f75d5be-a1f0-4a39-876d-5d38cf2c31cf.png)
   > 
   > 
![image](https://user-images.githubusercontent.com/15232738/142602860-26f366a3-fd62-4c35-89f2-a438ca168ec3.png)
   > 
   > # It looks like a connection problem
   
   1. Do you maintain the backend node `httpbin.org` privately, or just use the 
online one? If this is the public site, you should consider the network issues.
   2. It seems the subsequent requests happened without the front TCP 3-way 
handshakes, making sure whether the slow request you said suffered from the TCP 
3-way handshake, and measuring the cost time.


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