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/05/01 08:31:55 UTC

[GitHub] [apisix] tzssangglass commented on issue #4171: bug: log-util print response header connection always close, is apisix use short connection to upstream ?

tzssangglass commented on issue #4171:
URL: https://github.com/apache/apisix/issues/4171#issuecomment-830580647


   Hi, I reproduced your example and apisix does not actively modify the header connection.
   
   my route
   ```json
   {
       "update_time": 1619856904,
       "id": "1",
       "upstream": {
           "hash_on": "vars",
           "pass_host": "pass",
           "scheme": "http",
           "nodes": {
               "127.0.0.1:1980": 1
           },
           "type": "roundrobin"
       },
       "uri": "/*",
       "create_time": 1619856904,
       "status": 1,
       "enable_websocket": true,
       "priority": 0
   }
   ```
   
   `127.0.0.1:1980` is a nginx server, the nginx.conf is https://github.com/apache/apisix/blob/master/benchmark/server/conf/nginx.conf
   
   here is my request and response
   
   ```
   GET
   127.0.0.1:9080/hello
   16:21:22.653
   Pretty
   Raw
   Request Headers:
   Connection:"keep-alive"
   cache-control:"no-cache"
   Postman-Token:"7d3d220d-e0d1-4958-89b4-5f3fa842f244"
   User-Agent:"PostmanRuntime/7.6.0"
   Accept:"*/*"
   Host:"127.0.0.1:9080"
   accept-encoding:"gzip, deflate"
   Response Headers:
   Content-Type:"text/plain; charset=utf-8"
   Transfer-Encoding:"chunked"
   Connection:"keep-alive"
   Date:"Sat, 01 May 2021 08:21:22 GMT"
   Server:"APISIX/2.5"
   Response Body:Infinity
   ```
   
   
   
   
   


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

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