最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

amazon web services - Is there an equivalent apiCallTimeout in the Javascript sdkv3? - Stack Overflow

programmeradmin1浏览0评论

In the Java sdk, there is the apiCallTimeout: .Builder.html#apiCallTimeout(java.time.Duration)

Described as:

Configure the amount of time to allow the client to complete the execution of an API call. This timeout covers the entire client execution except for marshalling. This includes request handler execution, all HTTP requests including retries, unmarshalling, etc. This value should always be positive, if present.

When looking at this javascript sdkv3 upgrading guide: .md

It mentions timeouts as:

connectTimeout

v2: Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds.
v3: connectionTimeout is available in NodeHttpHandler options.

timeout

v2: The number of milliseconds a request can take before automatically being terminated.
v3: socketTimeout is available in NodeHttpHandler options.

But the docs: /

Seem to be on an individual connection level, and not a total timeout including all retries. So is it possible to set a timeout on the api calls similar to how Java can with apiCallTimeout?

发布评论

评论列表(0)

  1. 暂无评论