New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[node-http-handler] 100 continue promise prevents node process exit #4769
Comments
In AwsBatch, use client-s3+lib-storage to upload files, Have problem in ver 3.342.0, work fine in ver3.329.0 It should be related to this update
|
this fix is expected to be published later today as https://github.com/aws/aws-sdk-js-v3/releases/tag/v3.344.0 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Checkboxes for prior research
Describe the bug
After updating to @aws-sdk/node-http-handler version 3.341.0, we suddenly experience test runs that hang for a couple of seconds, after all tests have been executed.
SDK version number
@aws-sdk/node-http-handler@3.341.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v18.16.0
Reproduction Steps
Observed Behavior
Executing that test with
$ npx mocha node-http-handler.test.js
shows a successful test run, but the node process hangs for the number of milliseconds specified in therequestTimeout
above. Same happens when100 Continue
is actually returned by the server.Expected Behavior
After the test has executed, the node process should exit.
Possible Solution
In
aws-sdk-js-v3/packages/node-http-handler/src/write-request-body.ts
Line 23 in 44a18a3
setTimeout
return value (a timeout handle) and clear the timeout after thecontinue
event has been received:Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: