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

   ### Current Behavior
   
   currently, apisix gets the "X-Forwarded-Proto" header when calling the 
set_upstream_headers function,
   
   https://github.com/apache/apisix/blob/master/apisix/init.lua#L228-L239
   
   but it reads all the headers first, which may cause the CPU to rise 
abnormally if the number of headers is very large and the size is large
   
   https://github.com/apache/apisix/blob/master/apisix/core/request.lua#L45-L66
   
   
   <img width="1888" alt="image" 
src="https://user-images.githubusercontent.com/17425270/173836187-b2680e9f-9d34-45af-865e-7f03ca585790.png";>
   
   
   ### Expected Behavior
   
   _No response_
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   none
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - 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