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

[0.9.x] Avoid infinite iteration over queue on reconnect #131

Merged

Conversation

Jackenmen
Copy link
Member

Node.send() may append the element it received if the WebSocket is closed which has caused infinite expansion of Node._queue over which we iterate in Node.connect().

This fix was already incorporated into develop in #117 and this is a backport of that one specific change into 0.9.x branch.

This PR aims to solve the same problem that #129 does but it does it in a way that is less invasive to the existing code base which is preferred for a maintenance release to 0.9.x rather than the main development line. This should make it less likely to cause other issues that would require us to make another release.

@Jackenmen Jackenmen added this to the 0.9.4 milestone Aug 14, 2022
@aikaterna aikaterna merged commit 79a4d32 into Cog-Creators:0.9.x Aug 15, 2022
@Jackenmen Jackenmen deleted the avoid_infinite_iteration_on_reconnect branch January 5, 2023 10:08
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