gpt4 book ai didi

php - AWS 上的 504(网关超时)

转载 作者:可可西里 更新时间:2023-10-31 22:46:19 26 4
gpt4 key购买 nike

我的 Web 应用程序在 AWS EC2 实例上运行 PHP,我进行了大约 5-10 分钟的 ajax 调用,我在 Google Chrome 中看到了 Web 控制台,我得到了这个 504(网关超时) ,我如何增加它的值(value),这与 apache 有关吗?谢谢

最佳答案

ELB 默认超时时间为 60 秒;尽管this page,我没有办法扩展这个限制。建议这是 Amazon Support 可以为您做的事情(并且还建议解决该问题的方法):

Point 6) Amazon ELB timeouts at 60 seconds (kept idle)

Amazon ELB currently timeouts persistent socket connections @ 60 seconds if it is kept idle. This condition will be a problem for use cases which generates large files (PDF, reports etc) at backend EC2, sends them as response back and keeps connection idle during entire generation process. To avoid this you'll have to send something on the socket every 40 or so seconds to keep the connection active in Amazon ELB. Note: I heard we can extend this value after explaining the case to AWS support team.

编辑:正如下面的评论者所指出的,截至 July 24th, 2014这可以在您的 AWS 控制台中配置。

关于php - AWS 上的 504(网关超时),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20083673/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com