Issue #44 resolved

WebSocketApplication.handle() goes into infinite loop

Ken J
created an issue

The current read handler for the WebSocketApplication does the following

    def handle(self):

        while True:
                message =
            except WebSocketError:


In my simple test application, (the published EchoApplication), this loops forever, alternating between calling on_close and on_message of my EchoApplication.

Adding a simple break on WebSocketError seems to fix it.

This appears to have been changed in rev 0ee0f91. I'm currently running gevent-websocket 0.9 release (pulled down through pip).

Comments (2)

  1. Log in to comment