zzl-code commented on issue #11571: URL: https://github.com/apache/apisix/issues/11571#issuecomment-2359783726
> > 我注意到代码中有一个 enable_keepalive;应如何配置它以使其值为 false? > > 读完代码后,我可以得出结论,这是无法配置的。但是,您可以修改代码并测试它是否解决了您的问题。然后您可以建议配置该`keepalive`字段。 > > [您可以使用https://github.com/shreemaan-abhishek/apisix/blob/6e3bee2bffa97d03ba2ed7f33f92de9618acb94b/apisix/balancer.lua#L334](https://github.com/shreemaan-abhishek/apisix/blob/6e3bee2bffa97d03ba2ed7f33f92de9618acb94b/apisix/balancer.lua#L334)替换以下代码行`return true` [](https://github.com/shreemaan-abhishek/apisix/blob/6e3bee2bffa97d03ba2ed7f33f92de9618acb94b/apisix/balancer.lua#L334) I modified the code to set enable_keepalive=false, observed it for a day, and it seems to have worked, as the 502 errors have not reappeared." -- 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]
