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 #529: Don't keep reference to tornado.httpclient.AsyncHTTPClient #530

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

e-carlin
Copy link
Member

@e-carlin e-carlin commented Oct 3, 2024

By keeping a reference to AsyncHTTPClient in self._client it causes sockets opened by the client to never be freed. Eventually, we run out of file descriptors. Writing the code this way w/o self._client prevents that from happening. This is a stop gap until we can fix the underlying bug.

By keeping a reference to AsyncHTTPClient in self._client it causes
sockets opened by the client to never be freed. Eventually, we
run out of file descriptors. Writing the code this way w/o
self._client prevents that from happening. This is a stop gap
until we can fix the underlying bug.
@e-carlin
Copy link
Member Author

e-carlin commented Oct 3, 2024

@moellep please test with the slactwin code to confirm you see the socket growth issue resolved.

Copy link
Member

@moellep moellep left a comment

Choose a reason for hiding this comment

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

Works great - I didn't see any file leaks running lsof with this branch.

@e-carlin e-carlin merged commit c2877b2 into master Oct 4, 2024
3 checks passed
@e-carlin e-carlin deleted the 529-asynchttpclient-sockets branch October 4, 2024 16:16
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.

3 participants