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
相關內容
- AWS 官方已更新 8 個月前
- AWS 官方已更新 2 年前