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

valueerror:too many file descriptors in select() #963

Open
hk8805 opened this issue Dec 26, 2023 · 4 comments
Open

valueerror:too many file descriptors in select() #963

hk8805 opened this issue Dec 26, 2023 · 4 comments

Comments

@hk8805
Copy link

hk8805 commented Dec 26, 2023

Hello,
image

When i run the code above,i get an error after one day.
image
Looking for assistance.
Thank you.

@bubbleboy14
Copy link
Collaborator

Hey @hk8805 try it without the "rel.signal" line - that's already being taken care of here:

dispatcher.signal(2, dispatcher.abort) # keyboard interrupt

Anyway, give that a shot and LMK how it goes!

@bubbleboy14
Copy link
Collaborator

Hello again @hk8805! I just reproduced this in a Windows 10 virtualbox, and fixed it in a new rel release, 0.4.9.3.

So upgrade to the latest rel:

pip install rel -U

And give it another shot, should be fixed - LMK how it goes!

@hk8805
Copy link
Author

hk8805 commented Dec 27, 2023

Hello again @hk8805! I just reproduced this in a Windows 10 virtualbox, and fixed it in a new rel release, 0.4.9.3.

So upgrade to the latest rel:

pip install rel -U

And give it another shot, should be fixed - LMK how it goes!

thank you for your reply.
you mean i try both two solution at the same time?

@bubbleboy14
Copy link
Collaborator

Yes that's right - you can remove the "rel.signal" line from your code (as that is already accounted for by websocket-client).

And also please update rel to the latest version - this will essentially prevent the "too many file descriptors" by batching those select()s.

Good luck, LMK how it goes!

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

No branches or pull requests

2 participants