如何更改客戶端 lambda 調(diào)用請求超時?似乎如果 Lambda 調(diào)用花費超過一分半鐘,則會引發(fā)以下異常。我正在使用 .Net AmazonLambdaClient 客戶端。ex=System.Threading.Tasks.TaskCanceledException: The operation was canceled. ---> System.IO.IOException: Unable to read data from the transport connection: The I/O operation has been aborted because of either a thread exit or an application request. ---> System.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request
1 回答

人到中年有點甜
TA貢獻1895條經(jīng)驗 獲得超7個贊
在創(chuàng)建AmazonLambdaClient.
var client = new AmazonLambdaClient(
new AmazonLambdaConfig
{
Timeout = TimeSpan.FromSeconds(1000) // Default value is 100 seconds
//all other config values here
});
InvokeAsync如果您不需要等待他們返回,您可能還會查看是否可以替換您的呼叫。
- 1 回答
- 0 關注
- 140 瀏覽
添加回答
舉報
0/150
提交
取消