-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Websocket error #429
Comments
You have too many open files (maybe sockets actually). Looks like you have a Mac, so your system is not under high load. Perhaps the bug is into your code. |
Probably yes, but shouldn't server automatically close connections by timeout? For example, i have two users who are online at the same time (two active sockets), but for some reason sockets, created before were not closed properly and currently not used, will they be closed after some period of time? |
I cannot add timeout for websockets: they are endless by specification. I mean websocket itself has not timeout for disconnection, you may keep it on for unlimited time until client closes connection. If you need disconnection by timeout please do it yourself. Don't forget processing ping/pong messages to update timeouts.
|
Thank you, i'll investigate. |
I've used websocket similar to example in the documentation. After several messages sent getting this error. It happens from time to time unpredictably (means may happen after several requests or work for tens of requests and fail after that). Any idea where can be the problem and how to solve it?
The text was updated successfully, but these errors were encountered: