-
Notifications
You must be signed in to change notification settings - Fork 9
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
SHARD-1058: limits on socket connections, subscriptions per socket, connection timeout +fixes #92
Conversation
…socket, and one-day timeout for connections
@@ -0,0 +1,226 @@ | |||
import WebSocket from 'ws' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great work.
Further improvements: in the timeout, lets reduce the timer, and make it check if the socket is 'active' aka lets track the usage of the socket, and only drop the ones that are inactive, until we hit a hard limit.
we can do that next time though. LGTM
Linear: https://linear.app/shm/issue/SHARD-1058/
Summary:
This PR introduces the following changes: