Keep the idle-socket timeout of a NodeHttpHandler
ProprietaryRenames the requestTimeout option of a NodeHttpHandler from @aws-sdk/node-http-handler to socketTimeout. Before @smithy/node-http-handler 4.4.0, requestTimeout was the time a socket may stay idle before the request is rejected with a TimeoutError; from 4.4.0 it bounds the whole request and, unless throwOnRequestTimeout is set, only logs a warning, so a request to a server that stops answering hangs. socketTimeout is the idle-socket timeout in every release.
org. openrewrite. node. migrate. aws-sdk-smithy. keep-node-http-handler-idle-timeoutmod run . --recipe= org. openrewrite. node. migrate. aws-sdk-smithy. keep-node-http-handler-idle-timeoutInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.