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

🐛 Remove websocket connections that have been closed in send_event #177

Merged
merged 1 commit into from
Jan 29, 2021

Conversation

ssgelm
Copy link
Contributor

@ssgelm ssgelm commented Jan 29, 2021

Currently, if a connection is not dropped gracefully its websocket stays in the connection list. This means that when send_event runs it throws an IOError when it gets to that connection, causing all subsequent sockets in the list to not receive updated events. This commit instead rescues the error and removes the closed websocket from the list of
connections.

Currently, if a connection is not dropped gracefully its websocket stays
in the connection list. This means that when `send_event` runs it throws
an `IOError` when it gets to that connection, causing all subsequent
sockets in the list to not receive updated events. This commit instead
rescues the error and removes the closed websocket from the list of
connections.
@kinow kinow self-assigned this Jan 29, 2021
@kinow kinow added this to the 1.3.1 milestone Jan 29, 2021
@kinow kinow merged commit 2ac428d into Smashing:master Jan 29, 2021
@kinow
Copy link
Member

kinow commented Jan 29, 2021

Added a changelog and merged. Will be included in next 1.3.1 release. Thanks a lot @ssgelm !

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

Successfully merging this pull request may close these issues.

2 participants