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

While using the Gevent WebSocket client an os error, OSError: [Errno 24] Too many open files, occurs #120

Closed
osiloke opened this issue Feb 11, 2014 · 3 comments

Comments

@osiloke
Copy link

osiloke commented Feb 11, 2014

I have a service which forwards messages from a local zeromq based network of services to a remote websocket server via the ws4py gevent websocket class.
It seems to be caused by the call to os.urandom in ws4py/messaging.py and the fact that the default rlimit on macosx is 256.

On high load, the os.urandom fails which brings me to my next question. Is websockets or ws4py gevent client bad for streaming continuous data or should os.random be replaced with something that works under high load. I assumed that gevent would make accesses to /dev/urandom concurrent.

@osiloke
Copy link
Author

osiloke commented Feb 11, 2014

It seems to be an issue from the client i wrote in c++. When i make a client in python it works

@osiloke
Copy link
Author

osiloke commented Feb 12, 2014

Sorry, my c++ client was creating a new connection per second thats why it failed.

@osiloke osiloke closed this as completed Feb 12, 2014
@Lawouach
Copy link
Owner

I'm always happy not having to do anything :)

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