Skip to content

fix(node-http-handler): by default use 10 seconds as socketTimeout option, to prevent (#3279) #3291

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

Closed
wants to merge 1 commit into from

Conversation

adrai
Copy link

@adrai adrai commented Feb 8, 2022

to prevent leaking file descriptors, like described in #3279

Issue

Fixes: #3279

Description

Sets a default socketTimeout for the node-http-handler to decrease the amount of open file descriptors (sockets)

Testing

Was tested in user land described here and here


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…tion, to prevent (aws#3279)

to prevent leaking file descriptors, like described in aws#3279
@adrai adrai requested a review from a team as a code owner February 8, 2022 16:57
@adrai
Copy link
Author

adrai commented Feb 9, 2022

Any feedback on this @trivikr ?

@kuhe kuhe self-requested a review April 20, 2022 22:01
@kuhe kuhe self-assigned this Apr 20, 2022
@kuhe kuhe added the pr/needs-review This PR needs a review from a Member. label Apr 20, 2022
@kuhe
Copy link
Contributor

kuhe commented Apr 21, 2022

After your test of #3545 this may not be necessary?

I'm not inclined to change the default value (requiring opt-out and applying unexpected changes to default users) when it is already available as opt-in.

@adrai adrai closed this Apr 21, 2022
@github-actions
Copy link

github-actions bot commented May 6, 2022

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr/needs-review This PR needs a review from a Member.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Leaking file descriptors when generating too many http requests
2 participants