Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Better error handling for exceptions in on_message for websockets: av…

…oid extra IOErrors
  • Loading branch information...
commit 9d9b5e26eaa7c1ed61957ca212a1cb5b1aa71074 1 parent d762011
@kmike authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  tornado/websocket.py
View
1  tornado/websocket.py
@@ -191,6 +191,7 @@ def _on_end_delimiter(self, frame):
if not self.client_terminated:
self.async_callback(self.on_message)(
frame[:-1].decode("utf-8", "replace"))
+ if not self.client_terminated:
self._receive_message()
def _on_length_indicator(self, byte):
Please sign in to comment.
Something went wrong with that request. Please try again.