dpallot / simple-websocket-server

A python based websocket server that is simple and easy to use.
950 stars 320 forks source link

Can't connect more users #69

Closed startsts closed 5 years ago

startsts commented 6 years ago

I have something like chat-socket (used chat example + ssl), currently with ~300 active users, problem happens every 1-2 hours. New users can't connect, but it doesnt disconnect already connected users although their messages also don't reach socket "handleMessage" method. Before with few users it also was happening but not so frequently. In log file I can see only lines like that:

('78.46.227.52', 51444) connected ('78.46.227.52', 51444) closed

How to investigate details of the issue?

dpallot commented 5 years ago

Looks like a limitation in the number if descriptors you can have open at a time. I would suggest increasing that number in your OS.

uzlonewolf commented 2 months ago

This is possibly the SSL do_handshake() hang mentioned in #13. If so, see #110 for a fix.