Closed hp685 closed 8 years ago
The send is not injecting any spurious packets and they are all being sent in order. Is your ws client doing a single read or does it deal with fragmented packets? Posting some code might help.
I was using https://github.com/liris/websocket-client version 0.16 and upgrading it to version 0.34 seemed to have solved the issue. Frame validation has changed from the earlier version and I haven't spent time investigating where the problem lay.
I use this package in conjunction with websocket-client (https://pypi.python.org/pypi/websocket-client/) for the application. While running regressions on this application, intermittently, the client raises a WebSocketPayLoadException and on a closer look, it appears that the server is sending binary data in a text frame (possibly the control frame spills over into data frame?)
I'm certain that the application doesn't inject any data since we use the same backend via a different channel.