-
Notifications
You must be signed in to change notification settings - Fork 598
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
Documentation states maxSockets
is limited to 50
#1959
Comments
The default maxSockets of |
The Node.js sets |
I couldn't find internal discussion on how we arrived at the value of The Node.js runtime updated maxSockets from The reasons why v3 may switch to
The reasons why v3 may not switch to
After listing these reasons, the AWS SDK for JavaScript (v3) is likely to stick with default value used by Node.js runtime for |
@iwt-janbrauer: Do you expect AWS SDK for JavaScript (v3) to set default value for |
I don't have any further expectations other than the pro arguments you raised already. I expect the documentation to be in line with what the code is actually doing, and I expect it to work out of the box (especially when using AWS Lambda as that is sold as a "it just works" solution). |
During post-scrum discussion on 2/11, we decided to go ahead with default value of
|
Relevant PRs: |
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. |
Describe the issue with documentation
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html.
It states:
But this is only true for the old version of the SDK. v3 does not have this logic. Thus it will use
Infinity
and quickly exhaust the limit.To Reproduce (observed behavior)
Error: connect EMFILE 52.94.17.26:443 - Local (undefined:undefined)
in the log outputExpected behavior
This shouldn't have happened, because the DynamoDB client should not run out of file handles.
Screenshots
The text was updated successfully, but these errors were encountered: