1 回答
- 最新
- 投票最多
- 评论最多
0
Hi,
Increasing max execution time at PHP level won't solve your problem. Your current timeout comes from API Gateway: after 30s, it declares your PHP script unresponsive and returns a timeout to the user.
See https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html
Maximum integration timeout 30 seconds No
So, your script must respond in less than 30s to avoid this timeout response.
If you can't reduce processing time, you have to change your implementation a bit: run the script in the first request, which return a request id. and then have additional poll requests (initiated by client) supplying the request id to check if completed.
Best,
Didier
相关内容
- 已提问 3 个月前
- AWS 官方已更新 3 个月前
- AWS 官方已更新 8 个月前
- AWS 官方已更新 4 个月前