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

Fixes #418: WebSocketClosedError Spam #423

Merged
merged 2 commits into from
Aug 1, 2019
Merged

Fixes #418: WebSocketClosedError Spam #423

merged 2 commits into from
Aug 1, 2019

Conversation

lennartdopatka
Copy link
Contributor

@lennartdopatka lennartdopatka commented Jul 31, 2019

#413 added a check for the result of tornados WebSocketHandler.write_message and is throwing WebSocketClosedError if its None.
WebSocketHandler.write_message does return a Future since version 4.3.0. (tornado write_message doc)
I added a check to only raisie the Error when version is >4.3.0, to prevent anyone using a tornado version <4.3.0 to have a WebSockedClosedError for every message (see #418).

Copy link
Contributor

@mvollrath mvollrath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a brief comment in the code (or edit the existing comment) about this Tornado version-specific logic.

@mvollrath mvollrath merged commit 55b8817 into RobotWebTools:develop Aug 1, 2019
@mvollrath
Copy link
Contributor

Thanks you!

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.

3 participants