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

   `enable_keepalive` is a patch function of `ngx.balancer.lua` in 
`apisix-nginx-module`, see: 
https://github.com/api7/apisix-nginx-module/blob/main/patch/1.21.4/lua-resty-core-enable_keepalive.patch#L171-L208
   
   This is just test if `enable_keepalive` available: 
https://github.com/apache/apisix/blob/6451dd6e9fc2e5161bd8d701cfa51016d73ccabe/apisix/balancer.lua#L284
   
   Here is the real call: 
https://github.com/apache/apisix/blob/6451dd6e9fc2e5161bd8d701cfa51016d73ccabe/apisix/balancer.lua#L328
   
   `idle_timeout` is from `keepalive_pool.idle_timeout`, and `keepalive_pool` 
is from `up_conf.keepalive_pool`, so `idle_timeout` is form upstream conf.


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