-
Notifications
You must be signed in to change notification settings - Fork 104
feat: add checked socket exhaustion warning when throughput is slow #1164
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
Changes from all commits
6810dba
bbfb048
2e19456
6fbe1db
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@smithy/node-http-handler": minor | ||
"@smithy/types": minor | ||
--- | ||
|
||
add socket exhaustion checked warning to node-http-handler |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,15 @@ export interface NodeHttpHandlerOptions { | |
*/ | ||
requestTimeout?: number; | ||
|
||
/** | ||
* Delay before the NodeHttpHandler checks for socket exhaustion, | ||
* and emits a warning if the active sockets and enqueued request count is greater than | ||
* 2x the maxSockets count. | ||
* | ||
* Defaults to connectionTimeout + requestTimeout or 3000ms if those are not set. | ||
*/ | ||
socketAcquisitionWarningTimeout?: number; | ||
Comment on lines
+37
to
+44
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comment as before, can we mark this with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Alternatives are to not let this timeout be configurable, or have a different opt-in to the warning. Since users are dealing with a mysterious process exit, having the log output without opt-in I think would be better for their debugging experience. |
||
|
||
/** | ||
* @deprecated Use {@link requestTimeout} | ||
* | ||
|
Uh oh!
There was an error while loading. Please reload this page.