Skip to content

Improve "WARN - socket usage at capacity" with library name #1591

@cesco69

Description

@cesco69

Hi, I'm using a bit of sdk libraries:

{
    "@aws-sdk/client-dynamodb": "^3.806.0",
    "@aws-sdk/client-iam": "^3.806.0",
    "@aws-sdk/client-s3": "^3.806.0",
    "@aws-sdk/client-ses": "^3.806.0",
    "@aws-sdk/client-sqs": "^3.806.0",
    "@aws-sdk/client-sts": "^3.806.0",
    "@aws-sdk/cloudfront-signer": "^3.775.0",
    "@aws-sdk/lib-dynamodb": "^3.806.0",
    "@aws-sdk/lib-storage": "^3.806.0",
    "@aws-sdk/s3-request-presigner": "^3.806.0"
}

And I see this warning

@smithy/node-http-handler: WARN - socket usage at capacity=50 and 1956 additional requests are enqueued.
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.

It is possible set into the warning the library that cause the issue, eg:

@smithy/node-http-handler - @aws-sdk/client-s3: WARN - socket usage at capacity=50 and 1956 ....
----------------------------^^^^^^^^^^^^^^^^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions