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

Bugfix for OSError: [Errno 24] Too many open files #24

Open
wants to merge 2 commits into
base: loopring-v3
Choose a base branch
from

Conversation

0xtakamaka
Copy link

When opening RestClient multiple times you get error: "OSError: [Errno 24] Too many open files", which is caused because Pool's are not closing automatically. This commit fixes that with calling close() on multiprocessing.Pool when closing RestClient.

See attached image for a bug which is solved with this fix.

image

Close multiprocessing.Pool when closing RestClient. When opening RestClient multiple times you get error: "OSError: [Errno 24] Too many open files", which is caused because Pool's are not closing automatically. This commit fixes that.
Bugfix for OSError: [Errno 24] Too many open files
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.

1 participant