Skip to content
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

fix(node-http-handler): add logger option and clear timeout on errors #1311

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Jun 17, 2024

#1305

  • add logger option to node-http-handler
  • clear socket usage check timeout on error

@kuhe kuhe requested review from a team as code owners June 17, 2024 19:07
@kuhe kuhe requested a review from haydenbaker June 17, 2024 19:07
@kuhe kuhe force-pushed the fix/node-http-handler-timeout branch from cbb34fd to 93679bf Compare June 17, 2024 19:10
@kuhe kuhe force-pushed the fix/node-http-handler-timeout branch from 93679bf to ccb7592 Compare June 17, 2024 19:12
`socket usage at capacity=${socketsInUse} and ${requestsEnqueued} 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."
logger?.warn?.(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: do we need the ? on warn?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't based on the type itself, but users sometimes don't provide the right logger implementation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's somewhat common and not just hypothetical

@kuhe kuhe merged commit c16e014 into smithy-lang:main Jun 18, 2024
10 checks passed
@kuhe kuhe deleted the fix/node-http-handler-timeout branch June 18, 2024 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants