You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/11/21 16:53:54 UTC

[GitHub] [apisix] tzssangglass edited a comment on issue #5559: bug: 5秒内第一次请求需要4秒左右才返回

tzssangglass edited a comment on issue #5559:
URL: https://github.com/apache/apisix/issues/5559#issuecomment-974853956


   here is my step:
   
   ```
   curl --location --request PUT 'http://127.0.0.1:9080/apisix/admin/routes/1' \
   --header 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' \
   --header 'Content-Type: application/json' \
   --data-raw '{
       "uri": "/get",
       "name": "get",
       "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
   }'
   ```
   
   and use 
   
   ```
   curl 127.0.0.1:9080/get
   ```
   
   to test, I did not feel delay of the first request.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org